Created
November 8, 2010 00:39
-
-
Save albertoleal/667232 to your computer and use it in GitHub Desktop.
Capistrano Recipe - Deploy a Sinatra App to Webbynode
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
set :application, "myapp" | |
set :ip_address , "000.000.000.000" | |
set :scm, :git | |
set :repository, "[email protected]:albertoleal/Sinatra-Template.git" | |
set :branch, "master" | |
set :deploy_via, :remote_cache | |
set :user , "sinatra" | |
set :deploy_to, "/home/sinatra/#{application}" | |
set :shared_directory, "#{deploy_to}/shared" | |
set :use_sudo, false | |
set :group_writable, false | |
set :scm_verbose, true | |
default_run_options[:pty] = true | |
server :app, :web, :db, ip_address, :primary => true | |
namespace :deploy do | |
task :restart, :roles => :app do | |
run "mkdir -p #{release_path}/tmp && touch #{release_path}/tmp/restart.txt" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment