Skip to content
Browse files

some more fixes

  • Loading branch information...
1 parent 0ae6ce4 commit a0210421771ea36a8bf9496d4f11922939cda4e8 @nakajima committed Oct 12, 2008
Showing with 9 additions and 9 deletions.
  1. +1 −1 .gemified
  2. +1 −7 lib/capinatra.rb
  3. +7 −1 templates/Capfile
View
2 .gemified
@@ -2,5 +2,5 @@
:summary: Quickly deploy Sinatra apps on Passenger
:dependencies:
- capistrano
-:name: capinatra
:version: 0.0.1
+:name: capinatra
View
8 lib/capinatra.rb
@@ -28,13 +28,7 @@
put ERB.new(template).result(binding), "config.ru"
logger.info 'moving vhost file to ' + apache_vhost_dir
- sudo "mv config.ru #{current_path}"
- end
- end
-
- namespace :deploy do
- task :restart do
- run "touch #{current_path}/tmp/restart.txt"
+ sudo "mv config.ru #{release_path}"
end
end
end
View
8 templates/Capfile
@@ -23,4 +23,10 @@ role :web, domain
role :db, domain, :primary => true
# where the apache vhost will be generated
-set :apache_vhost_dir, "/etc/apache2/sites-enabled/"
+set :apache_vhost_dir, "/etc/apache2/sites-enabled/"
+
+namespace :deploy do
+ task :restart do
+ run "touch #{current_path}/tmp/restart.txt"
+ end
+end

0 comments on commit a021042

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