Permalink
Browse files

Create current/log and current/tmp if they don't exist.

These are often not under version control, but their absence keeps mongrel from recognizing the rails app.
  • Loading branch information...
1 parent 43ae524 commit 0ce0b233af0f5a7101a3c8c4ecbc1383f854d46b @nilbus nilbus committed Aug 1, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −1 README.md
  2. +1 −0 lib/capistrano/ext/windows_server.rb
View
@@ -161,7 +161,7 @@ In addition to creating the directory structure, it clones your project into #{d
cap deploy:setup
After `cap deploy:setup` runs successfully, it's time to set up the Rails application.
-Create or copy in config/database.yml, set up the database server, install gems, and anything else you need to do to make the app run.
+Create or copy in **config/database.yml**, set up the **database**, **install gems**, and anything else you need to do to make the app run.
Testing to make sure the app will start with `rails script/server -e production` is a good idea.
Once it's ready, you can deploy your app for the first time:
@@ -107,6 +107,7 @@ def mongrel_cmd
desc "Create mongrel services"
task :setup do
mongrel_instances.each do |n|
+ run "mkdir -p #{current_path}/{tmp,log}" # These are often not under version control, but their absence keeps mongrel from recognizing the rails app
run "cd #{current_path} && #{mongrel_cmd} service::install -e #{rails_env} -N #{mongrel_instance_prefix}#{n} -p #{base_port + n - mongrel_instances.first}"
run %Q(sc.exe config "#{mongrel_instance_prefix}#{n}" start= auto)
end

0 comments on commit 0ce0b23

Please sign in to comment.