A set of scripts for preparing a VDS for rails app deploy
On a fresh machine:
- SSH as root
apt-get install curl
bash <(curl -s https://raw.githubusercontent.com/yurijmi/deploy_rails/master/step1.sh)
- Follow the script
- SSH as deploy or whatever you've chosen
bash <(curl -s https://raw.githubusercontent.com/yurijmi/deploy_rails/master/step2.sh)
- You're awesome and good to go!
Don't forget to change your environmental variables in secrets.yml
and database.yml
.
<%= ENV.fetch('http_%APP_NAME%_database_password') %>
for database.yml
<%= ENV.fetch('http_%APP_NAME%_secret_key_base') %>
for secrets.yml