-
-
Save wayneeseguin/815287 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
default_run_options[:pty] = true | |
set :application, "bobo" | |
set :repository, "file:///home/poporoot/git/bobo.git" | |
set :local_repository, "ssh://[email protected]/home/poporoot/git/bobo.git" | |
set :user, 'poporoot' | |
set :deploy_to, "/home/poporoot/roboczy/bobo" | |
require 'bundler/capistrano' | |
# Deploying to server with a user RVM install. | |
# gem "rvm" # put this in your Gemfile | |
require "rvm/capistrano" | |
set :rvm_ruby_string, 'ruby-1.9.2-p136' | |
set :rvm_type, :user | |
set :scm, "git" | |
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` | |
role :web, "192.168.56.158" # Your HTTP server, Apache/etc | |
role :app, "192.168.56.158" # This may be the same as your `Web` server | |
role :db, "192.168.56.158", :primary => true # This is where Rails migrations will run | |
role :db, "192.168.56.158" | |
# If you are using Passenger mod_rails uncomment this: | |
# 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 | |
#after "deploy:update_code", :bundle_install | |
#desc "install the necessary prerequisites" | |
#task :bundle_install, :roles => :app do | |
# run "cd #{release_path} && bundle install" | |
# end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment