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
Create deploy.rb under your app’s config directory. The basic config/deploy.rb file:
application = “test”repository = ‘[email protected]: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)
Inploy commands
#### Pull the app from repo, bundle install, create database, migrate:
bundle exec rake inploy:remote:setup
Once you’re setup, you can update your app and repo:
bundle exec rake inploy:remote:update
That’s it! You can learn more about Inploy on Github.