Featured post
- Get link
- X
- Other Apps
First Sign into the consle of the Amazon Web Services (AWS) and
In the Navigation pane Select ElasticBean
Click on Applications and then on the Create Applicataion button and
Name the appliation and click on Create
The will create the Application
Now you need to Create the environment.
You need to select the Ruby version. I selected 2.6
It is must same as the the Ruby version in your local and the Ruby version on the AWS must be same otherwise it will fail while deploying
Also you need check the puma version it must also be that of the AWS.
The PUma version is mentioned in the GEM file of the Rails app.
. Leave the rest and now click on Create
Deploying the Application.
Go to your Local folder of the Rails project and run eb init on the root of the app. This will create ebbeanstalk environment folder
You will be prompted to use Code Commit Choose Yes
Then run git add
Then you will be prompted to create a repo . Create a new one
Then select the master branch as shown in the instructions
Now run git commit -m "First Commit"
At last run git push origin master.
select After the code is pushed run eb deploy.
That's it your App will be deployed.
- Get link
- X
- Other Apps
Comments
Post a Comment