Skip to content

lawrencecurtis/deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Deployment scripts for capistrano using nginx

Will auto generate vhosts etc

Install

Go into your rails project and type….

./script/plugin install git://github.com/lawrencecurtis/deploy.git capify .

Then open up the config/deploy.rb and add something similar to this…

set :application, "lawrencecurtis.co.uk" # www. auto prefixed
set :repository,  "git://github.com/lawrencecurtis/lawrencecurtis.co.uk.git"
set :scm, "git"

set :user, "deploy"
set :runner, user
# starting port
set :mongrel_port, 3000

# threads required, 3 should be ample
set :mongrel_servers, 3 

# If you aren't deploying to /u/apps/#{application} on the target%
# servers (which is the default), you can specify the actual location
# via the :deploy_to variable:
set :deploy_to, "/srv/#{application}"

role :app, "servername.com"
role :web, "servername.com"
role :db,  "servername.com", :primary => true

Usage

To setup a site

cap deploy:setup

To start a site the first time

cap deploy:cold

Further deplpys

cap deploy

About

Deployment scripts for nginx + auto gen vhost

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages