Deploying rails app into EC2 using Rubber
Step 1
Get the key from aws and store it in ~/.ec2 folder
1
|
|
Generate the publickey
1
|
|
Step 2
Add rubber gem in your gemfile
1 2 |
|
Step 3
Now do vulcanize. Am using nginx and passenger
1
|
|
Step 4
Now edit following fields in config/rubber/rubber.yml
access key
secret access key
account name
app name
app user
image id
image type
Step 5 :
Deploy Part :
1 2 3 |
|
If you are using oracle instant client set the environment variable in server and then do cap deploy
Troubleshooting:
Here is the way to bypass fingerprint authentication prompt
add these two lines in deploy script.
1 2 |
|