forked from ashleygwilliams/student-sinatra
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 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 | 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
require 'bundler/capistrano' # for bundler support | ||
|
||
set :application, "student-sinatra" | ||
set :repository, "[email protected]:gglin/student-sinatra.git" | ||
|
||
set :user, "gglin" | ||
set :deploy_to, "/home/#{user}/#{application}" | ||
set :use_sudo, false | ||
|
||
set :scm, :git | ||
|
||
default_run_options[:pty] = true | ||
|
||
# set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names | ||
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` | ||
|
||
role :web, "198.211.113.121" # Your HTTP server, Apache/etc | ||
role :app, "198.211.113.121" # This may be the same as your `Web` server | ||
# role :db, "your primary db-server here", :primary => true # This is where Rails migrations will run | ||
# role :db, "your slave db-server here" | ||
|
||
# if you want to clean up old releases on each deploy uncomment this: | ||
# after "deploy:restart", "deploy:cleanup" | ||
|
||
# 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 |