Update: version for Ubuntu 16.04
Tested on Ubuntu 14.04
Setup SSH keys (manual)
Download this repo and unzip.
Change in files:
/config/deploy/production.rb
ip = 'enter_your_server_ip'
config/deploy.rb
# Set your repository url
set :repo_url, 'https://github.com/Syntaxys-dll/Rails-5-auto-deploy-boilerplate.git'
# Set deploy directory
set :deploy_to, '/home/deploy/applications/test'
Add ssh keys from ~/.ssh to yourappfolder/config/provision/keys/
Run playbook install. Change ip to your server.
cd config/provision && ansible-playbook -i188.226.255.173, playbook.yml
Run:
cap production deploy