Created
October 6, 2011 08:36
-
-
Save deplorableword/1266861 to your computer and use it in GitHub Desktop.
deploy via copy
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
require "bundler/capistrano" | |
set :application, "ivy" | |
default_run_options[:pty] = true | |
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` | |
set :user, "username" | |
server "domain.com", :app, :web, :db, :primary => true | |
set :scm, :none | |
set :repository, "." | |
set :deploy_via, :copy | |
# If you are using Passenger mod_rails uncomment this: | |
namespace :deploy do | |
task :start do | |
run "automysqlbackup" | |
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 |
Author
deplorableword
commented
Oct 6, 2011
via email
What's the output when you type cap:deploy in your app directory?
On 6 October 2011 13:03, Trevor Morris < ***@***.***>wrote:
I'm trying the following, but nothing seems to happen!
``` ruby
set :application, "wordpress"
set :domain, "project.staging.co.uk"
set :user, "username"
set :deploy_to, "/home/#{user}/public_html/project"
set :use_sudo, false
server "#{domain}", :app, :web, :db, :primary => true
set :scm, :none
set :repository, "."
set :deploy_via, :copy
namespace :deploy do
desc ""
task :default do
#run "cd public && git pull"
#run "automysqlbackup"
end
end
```
##
Reply to this email directly or view it on GitHub:
https://gist.github.com/1266861
##
Tom Martin
devart.org
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment