Skip to content

tangledpath/capifaction

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capifaction

Some common Capistrano recipies for Webfaction.

Installation

Add this line to your application's Gemfile:

gem 'capifaction', :git => '[email protected]:VictoryProductions/capifaction.git'

And then execute:

$ bundle

Or install it yourself manually as:

$ git clone [email protected]:VictoryProductions/capifaction.git
$ cd capifaction
$ gem build capifaction.gemspec
$ gem install capifaction-0.0.1.gem 

Recipies

Restart/Reload nginx

deploy:restart and deploy:reload where prepared for this.

deploy:restart is called after deploy:update

Copying database config file

If config_path is present, it will look for database.yml and copy it to the proper location on the release path.

deploy:copy_db_config is run after creating the current symlink of deploy:update.

DB migrations

Overrides the default Capistrano version, adapted to the webfaction environment.

deploy:migrate is run after a full deploy.

Seeds

Doing deploy:seed will execute rake db:seed.

Bundle install

deploy:refresh_gems updates the gems of the release path by doing a bundle install on the Rails production environment.

Run after creating the current symlink of deploy:update.

Usage

On config/deploy.rb include these sample configuration variables:

set :application,     "Application name"

set :repository,      "[email protected]:account/repo.git"
set :deploy_subdir,   "subdir_on_repo"
set :scm_username,    "my_username"

set :server_url,        "www.myserver.com"
set :user,              "ssh_username_on_server"
set :base_deploy_path,  "~/base_path_to_install"
set :config_path,       "~/additional_config_files_path" # database.yml

References

About

Some common Capistrano recipies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%