In this guide we will cover two main cases:
- Ember specific library
- vendor library
The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.
| ## Deploying React on Rails to Elastic Beanstalk | |
| In order to deploy a React on Rails app to elastic beanstalk, you must install yarn on each instance. If yarn is not installed, asset compilation will fail on the elastic beanstalk instance. | |
| You can install yarn by adding a 0x_install_yarn.config file to your .ebextensions folder which contains these commands. | |
| files: | |
| "/opt/elasticbeanstalk/hooks/appdeploy/pre/09_yarn.sh" : | |
| mode: "000755" | |
| owner: root | |
| group: root |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
A Pen by Stoyan Ekupov on CodePen.