freerange/deploy
Allows simple, git-based deployment on freerange-compatible servers (see assumptions below)
How to use
In your project, run:
$ freerange-deploy setup REPOSITORY HOST [NAME]
This should add a Capfile, config/deploy.rb and config/deploy/production.rb files to the project. Feel free to edit the deploy.rb and production.rb files as you wish.
When ready, from your project run:
$ cap production host:setup
$ cap production deploy:setup
The first command adds a VHOST file to /etc/apache2/sites-available and enables it. The second does the standard capistrano setup stuff.
For simple apps, you should now be able to deploy:
$ cap production deploy
Assumptions
-
You’re deploying as ‘deploy’
-
You’re deploying to /var/www/<application>
-
The deploy user has write access to /etc/apache2/sites-available
-
The deploy user is a sudoer