forked from openSNP/snpr
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further work on capistrano staging-evironment
- Loading branch information
1 parent
7c0b31c
commit bd6bb45
Showing
4 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
load 'deploy' | |||
# Uncomment if you are using Rails' asset pipeline | |||
# load 'deploy/assets' | |||
load 'config/deploy' # remove this line to skip loading any of the default tasks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,26 @@ | |||
require 'capistrano/ext/multistage' | |||
set :stages, %w(production staging) | |||
set :default_stage, "staging" | |||
|
|||
set :application, "snpr" | |||
set :repository, "set your repository location here" | |||
|
|||
set :scm, :git | |||
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` | |||
# | |||
set :repository, "https://github.com/gedankenstuecke/snpr.git" | |||
set :deploy_to, "/var/www/snpr" | |||
set :deploy_via, :remote_cache | |||
set :rails_env, "production" | |||
|
|||
# if you're still using the script/reaper helper you will need | |||
# these http://github.com/rails/irs_process_scripts | |||
|
|||
# If you are using Passenger mod_rails uncomment this: | |||
# namespace :deploy do | |||
# task :start do ; end | |||
# task :stop do ; end | |||
# task :restart, :roles => :app, :except => { :no_release => true } do | |||
# run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" | |||
# end | |||
# end |