This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Capistrano deployment procedure.
- Loading branch information
Daniel Nordstrom
committed
Jan 24, 2012
1 parent
37f61dc
commit 9b0e95f
Showing
5 changed files
with
34 additions
and
1 deletion.
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,8 @@ | |||
load 'deploy' if respond_to?(:namespace) # cap2 differentiator | |||
|
|||
# Uncomment if you are using Rails' asset pipeline | |||
# load 'deploy/assets' | |||
|
|||
Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } | |||
|
|||
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,19 @@ | |||
require 'bundler/capistrano' | |||
|
|||
set :application, "mankindorganization.com" | |||
set :repository, "github.com:dnordstrom/mankindorganization.com.git" | |||
|
|||
set :scm, :git | |||
set :user, 'dnordstrom' | |||
set :deploy_to, "/var/www/vhosts/mankindorganization.com" | |||
set :deploy_via, :remote_cache | |||
|
|||
server "niroot.com", :app, :web, :db | |||
|
|||
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 |
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
Binary file not shown.