Skip to content

Instantly share code, notes, and snippets.

@jondot
Created May 29, 2010 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jondot/418356 to your computer and use it in GitHub Desktop.
Save jondot/418356 to your computer and use it in GitHub Desktop.
require 'deprec'
set :user, "***"
set :application, "***"
set :domain, "***"
set :scm_username, '***'
set :scm_password, '***'
set :repository, "***/repo"
default_run_options[:pty] = true
set :ruby_vm_type, :ree # :ree, :mri
set :web_server_type, :apache # :apache, :nginx
set :app_server_type, :passenger # :passenger, :mongrel
set :db_server_type, :mysql # :mysql, :postgresql, :sqlite
# set :packages_for_project, %w(libmagick9-dev imagemagick libfreeimage3) # list of packages to be installed
# set :gems_for_project, %w(rmagick mini_magick image_science) # list of gems to be installed
# Update these if you're not running everything on one host.
role :app, domain
role :web, domain
role :db, domain, :primary => true, :no_release => true
# If you aren't deploying to /opt/apps/#{application} on the target
# servers (which is the deprec default), you can specify the actual location
# via the :deploy_to variable:
# set :deploy_to, "/opt/apps/#{application}"
namespace :deploy do
task :start, :roles => :app do
run "touch #{current_release}/tmp/restart.txt"
end
task :stop, :roles => :app do
# Do nothing.
end
desc "Restart Application"
task :restart, :roles => :app do
run "touch #{current_release}/tmp/restart.txt"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment