Commit 38af9107

mo k <mo@mokhan.ca>
2011-07-05 03:29:24
override the default :deploy target to run nginx passenger specific startup.
1 parent 2afaa9f
Changed files (2)
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
README
@@ -254,3 +254,18 @@ vendor
   External libraries that the application depends on. Also includes the plugins
   subdirectory. If the app has frozen rails, those gems also go here, under
   vendor/rails/. This directory is in the load path.
+
+
+
+## Capistrano
+
+[more info](https://github.com/capistrano/capistrano/wiki/2.x-From-The-Beginning)
+
+{% highlight text linenos %}
+
+  $ cap deploy:setup
+  $ cap deploy:check
+  $ cap deploy:update
+
+{% endhighlight %}
+