Skip to content
Browse files

* Hacked the creation, if you are capifying a project without a conf…

…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...
1 parent 4eba7c3 commit eee027738f48010113770d8e1fb4909b0fc2876e @leehambley leehambley committed Aug 27, 2009
Showing with 18 additions and 20 deletions.
  1. +18 −20 bin/capify
View
38 bin/capify
@@ -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://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://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|

0 comments on commit eee0277

Please sign in to comment.
Something went wrong with that request. Please try again.