Skip to content

Commit

Permalink
* Hacked the creation, if you are capifying a project without a conf…
Browse files Browse the repository at this point in the history
…ig/ directory it will make it now, without throwing a warning.

 * Also improved on the nerfed implementation of the start/stop/restart tasks in the example config/deploy.rb
  • Loading branch information
leehambley committed Aug 27, 2009
1 parent 4eba7c3 commit eee0277
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions bin/capify
Original file line number Diff line number Diff line change
Expand Up @@ -43,30 +43,28 @@ files = {
load 'config/deploy' # remove this line to skip loading any of the default tasks
FILE

"config/deploy.rb" => unindent('
set :application, "set your application name here"
set :repository, "set your repository location here"
"config/deploy.rb" => 'set :application, "set your application name here"
set :repository, "set your repository location here"
set :scm, :subversion
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
set :scm, :subversion
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
role :web, "your web-server here" # Your HTTP server, Apache/etc
role :app, "your app-server here" # This may be the same as your `Web` server
role :db, "your primary db-server here", :primary => true # This is where Rails migrations will run
role :db, "your slave db-server here"
role :web, "your web-server here" # Your HTTP server, Apache/etc
role :app, "your app-server here" # This may be the same as your `Web` server
role :db, "your primary db-server here", :primary => true # This is where Rails migrations will run
role :db, "your slave db-server here"
# If you are using Passenger mod_rails uncomment this:
# if you\'re still using the script/reapear helper you will need
# these http:https://github.com/rails/irs_process_scripts
# If you are using Passenger mod_rails uncomment this:
# if you\'re still using the script/reapear helper you will need
# these http:https://github.com/rails/irs_process_scripts
# namespace :deploy do
# task :start {}
# task :stop {}
# task :restart, :roles => :app, :except => { :no_release => true } do
# run "#{try_sudo} touch #{File.join(current_path,\'tmp\',\'restart.txt\')}"
# end
# end
')}
# namespace :deploy do
# task :start {}
# task :stop {}
# task :restart, :roles => :app, :except => { :no_release => true } do
# run "#{try_sudo} touch #{File.join(current_path,\'tmp\',\'restart.txt\')}"
# end
# end'}

base = ARGV.shift
files.each do |file, content|
Expand Down

0 comments on commit eee0277

Please sign in to comment.