Permalink
Browse files

start the app by requesting the root path and adding www to url

  • Loading branch information...
1 parent 5ed6406 commit f3d6018185d1ea74aa41a164ed041cbc9ced5c01 @borisnadion borisnadion committed Sep 26, 2010
Showing with 12 additions and 0 deletions.
  1. +12 −0 lib/vladify/www_app.rb
View
@@ -0,0 +1,12 @@
+namespace :remote do
+ namespace :www_app do
+ desc "start the app with first request"
+ remote_task :request do
+ run "curl http://www.#{domain.split(/@/).last}/"
+ end
+ end
+end
+
+namespace :deploy do
+ task :restart => "remote:www_app:request"
+end

0 comments on commit f3d6018

Please sign in to comment.