Skip to content

Instantly share code, notes, and snippets.

@albertoleal
Created November 8, 2010 00:39
Show Gist options
  • Save albertoleal/667232 to your computer and use it in GitHub Desktop.
Save albertoleal/667232 to your computer and use it in GitHub Desktop.
Capistrano Recipe - Deploy a Sinatra App to Webbynode
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