Created
December 20, 2010 21:13
-
-
Save anonymous/748994 to your computer and use it in GitHub Desktop.
deploy 20.12 22:12
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, "blog4" | |
set :repository, "ssh://paszo@paszo.ayz.pl:59184/home/paszo/var/git/blog4.git" | |
set :user, 'paszo' | |
set :deploy_to, "/home/paszo/public_html/blog4_pliki" | |
set :scm, 'git' | |
set :use_sudo, false | |
set :default_environment, { | |
'PATH' => "/usr/local/bin:/usr/bin:/bin:/usr/local/mysql/bin:/usr/local/imagemagick/bin:/opt/ruby-enterprise-1.8.7-2010.02/bin/:/home/paszo/.rvm/bin:/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib", | |
'RUBY_VERSION' => 'ruby 1.8.7', | |
'GEM_HOME' => '/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8:/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib', | |
'GEM_PATH' => '/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8:/home/paszo/.gem/ruby/1.8:/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib', | |
'BUNDLE_PATH' => '/opt/ruby-enterprise-1.8.7-2010.02/bin/bundle' # If you are using bundler. | |
} | |
set :shared_path, "/home/paszo/public_html/blog4_pliki/shared" | |
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` | |
role :web, "paszo.ayz.pl:59184" # Your HTTP server, Apache/etc | |
role :app, "paszo.ayz.pl:59184" # This may be the same as your `Web` server | |
role :db, "paszo.ayz.pl:59184", :primary => true # This is where Rails migrations will run | |
role :db, "paszo.ayz.pl:59184" | |
set :bundle_gemfile, "Gemfile" | |
set :bundle_dir, File.join(fetch(:shared_path), 'bundle') | |
set :bundle_flags, "--quiet --deployment" | |
set :bundle_without, [:development, :test] | |
set :bundle_cmd, "/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/bundler-1.0.7/bin/bundle" # "bundle" # e.g. "/opt/ruby/bin/bundle" | |
set :bundle_roles, :app | |
# set :bundle_roles, {:except => {:no_release => true}} # e.g. [:app, :batch] | |
#require "bundler/capistrano" | |
require 'bundler/capistrano' | |
# If you are using Passenger mod_rails uncomment this: dsadscxvxc dsf ad | |
# if you're still using the script/reapear helper you will need | |
# these http://github.com/rails/irs_process_scripts | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment