Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Add usage details to README and acknowledge contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffgarside committed Jun 14, 2008
1 parent bfebada commit d1da38a
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
45 changes: 44 additions & 1 deletion README
@@ -1,6 +1,49 @@
PrimeHosting Capistrano Recipes
===============================
A gem of recipes to facilitate easy deployment of Rails applications to [PrimeHosting][primehosting] using [Capistrano][cap].
A gem of recipes to facilitate easy deployment of Rails applications to [PrimeHosting][primehosting] using [Capistrano][cap].

Usage
-----
Here is an example capistrano deploy.rb file which will deploy the application `cheese` for the user `prime`. The application will be using port `11000`

require 'primehosting'

set :user, "prime"
set :application, "cheese"
set :repository, "git://github.com/geoffgarside/ph-cheese.git"

set :deploy_via, :remote_cache

set :scm, :git
set :ssh_options, { :forward_agent => true }

set :app_port, "11000"

after "deploy:update_code", "database:copy_config"

once you've setup your config/deploy.rb file run `cap deploy:setup` and your deployment directories will be setup for you.

Note that by default it will deploy to

/usr/home/:user/apps/:application

so in the above example it would be

/usr/home/prime/apps/cheese

that the application would be deployed to. If you've setup your rails application to run from a different directory then you will need to set it by adding something like

set :deploy_to, "/usr/home/#{user}/rails_apps/#{application}"

if you've put your applications in `rails_apps` instead of apps.

Acknowledgements
----------------
The primehosting capistrano recipe gem has been developed by

* Geoff Garside <geoff.garside@openhosting.co.uk>
* Anthony Underwood <add email here>


[primehosting]: http://www.primehosting.co.uk/ "Prime Hosting"
[cap]: http://www.capify.org/ "Capistrano"
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -5,7 +5,7 @@ require 'rake'
GEM_NAME = "primehosting"
SUMMARY = "Capistrano recipes for deployment to Primehosting accounts"
HOMEPAGE = "http://primehosting.co.uk/"
AUTHORS = ["Geoff Garside"]
AUTHORS = ["Geoff Garside", "Anthony Underwood"]
EMAIL = "primehosting@geoffgarside.co.uk"

## Obtained settings
Expand Down

0 comments on commit d1da38a

Please sign in to comment.