diff options
| author | mo k <mo@mokhan.ca> | 2011-07-04 21:29:24 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2011-07-04 21:29:24 -0600 |
| commit | 38af91077c7e595281abc3c43bde31b05feef8db (patch) | |
| tree | 2bfb444a0be2bbece2c3edc94ce3cfcc2a18d169 /config/deploy.rb | |
| parent | 2afaa9f9763b53d8bb8ef302e0635c2fa59431f6 (diff) | |
override the default :deploy target to run nginx passenger specific startup.
Diffstat (limited to 'config/deploy.rb')
| -rw-r--r-- | config/deploy.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index 3cd90ad6..ec37659f 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -23,3 +23,20 @@ ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "amazon-cakeside", "cakesid # run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" # end # end +# +# +namespace :deploy do + task :start, :roles => :app do +# run "cd #{current_release} & rake thinking_sphinx:create RAILS_ENV=production & rake thinking_sphinx:start RAILS_ENV=production" + run "touch #{current_release}/tmp/restart.txt" + end + + task :stop, :roles => :app do + # Do nothing. + end + + desc "Restart Application" + task :restart, :roles => :app do + run "touch #{current_release}/tmp/restart.txt" + end +end |
