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
15 changed files
with
189 additions
and
20 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
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' if respond_to?(:namespace) # cap2 differentiator | ||
Dir['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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
class PagesController < ApplicationController | ||
|
||
caches_page :home | ||
|
||
def home | ||
|
||
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
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
require 'bundler/capistrano' | ||
|
||
set :application, "opensnorby" | ||
set :domain, '173.255.236.165' | ||
role :app, domain | ||
role :web, domain | ||
role :db, domain | ||
|
||
set :user, 'deploy' | ||
set :deploy_to, "/var/www/apps/#{application}" | ||
set :deply_via, :remote_cache | ||
set :use_sudo, false | ||
|
||
set :scm, :git | ||
set :repository, "git@github.com:mephux/#{application}.git" | ||
set :branch, "master" | ||
|
||
namespace :deploy do | ||
desc "Restarting mod_rails with restart.txt" | ||
task :restart do | ||
run "touch #{current_path}/tmp/restart.txt" | ||
end | ||
|
||
[:start, :stop].each do |t| | ||
desc "#{t} task is a no-op with mod_rails" | ||
task t, :roles => :app do ; end | ||
end | ||
|
||
task :symlink_shared do | ||
desc "Moving Shared File To Release Path..." | ||
run "ln -nfs #{shared_path}/config/database.yml #{current_path}/config/database.yml" | ||
end | ||
end | ||
|
||
after 'deploy:update', 'deploy:symlink_shared', 'deploy:restart' |
Empty file.
Oops, something went wrong.