-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Start
$ git clone https://github.com/frank-yoon/eb-rails-react.git
$ cd eb-rails-react
$ git checkout release/v1
$ rails server
$ rails credentials:edit
On successful execution, the command will create two files:
- config/credentials.yml.enc
- config/master.key
Do not commit config/master.key
to a public repository; instead, put the master key in a password manager. By default, both Rails and this repository .gitignore config/master.key
. An alternative to including a master key via config/master.key
is to configure it in the AWS Elastic Beanstalk Ruby environment property RAILS_MASTER_KEY.
Create a source bundle containing the files created by Rails. The following command creates a source bundle named rails-default.zip
.
$ cd eb-rails-react
$ zip ../rails-default.zip -FSr * .[^.]* -x@.exclude.lst
Configure the Create a web server environment page as follows:
- Platform
- Preconfigured platform: Ruby
- Base configuration
- Application code: Upload your code
Click Upload. Configure the Upload your code page as follows:
- Source code origin
- Local file: Click Choose File. Choose your previously bundled source code (i.e.,
rails-default.zip
) and then click Upload.
- Local file: Click Choose File. Choose your previously bundled source code (i.e.,
Click Create environment – AWS will begin creating a Ruby environment.