I\'ve inherited a Rails project, hosted on Linode.
The previous developer was using a BitBucket repository, along with Capistrano for deployments.
I\'ve since
for me the only way it has deploy was:
adding the local id_rsa to the server
cat ~/.ssh/github_rsa.pub | ssh -i /Users/jasmo2/Documents/AWS-keypair/designmatch.pem ubuntu@52.37.202.32 "cat >> .ssh/authorized_keys"
after typing the command. Is preferable to set the set :ssh_options.
Then
set :use_sudo, true
on the deploy.rb file.
Finally instal
sudo apt-get install libpq-dev
gem install pg -v '0.18.4'
desc 'Restart application'
task :restart do
on roles(:app), in: :sequence, wait: 5 do
execute :mkdir, '-p', "#{ release_path }/tmp"
execute :touch, release_path.join('tmp/restart.txt')
end
end