Deploying with Inploy - An alternative to Capistrano
Inploy is similar to Capistrano but easier - it has better defaults and it is more forgiving when you don’t know what you’re doing (me).Inploy on your development machine:
- add to Gemfile: gem ‘inploy’
- bundle install --without production
| application = "test" repository = 'git@git.assembla.com:my-apps-repo.git' hosts = ['zer1'] path = '/home/deploy' |
Notes on deploy.rb:
- default user is ‘deploy’
- deploys to #{path}/#{application}
- Inploy’s hosts will look to your development machine’s .ssh/config (so add your production server)
- bundle exec rake inploy:remote:setup
- bundle exec rake inploy:remote:update