Merge pull request #1169 from phanimahesh/patch-1

Prevent errors in case #{rails_root}/tmp does not exist
This commit is contained in:
Robin Ward 2013-07-10 07:11:59 -07:00
commit 68c86931e4
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ Bluepill.application("discourse", :base_dir => ENV["HOME"] + '/.bluepill') do |a
app.working_dir = rails_root
sockdir = "#{rails_root}/tmp/sockets"
File.directory? sockdir or Dir.mkdir sockdir
File.directory? sockdir or FileUtils.mkdir_p sockdir
num_webs.times do |i|
app.process("thin-#{i}") do |process|
process.start_command = "bundle exec thin start -e production -t 0 --socket #{sockdir}/thin.#{i}.sock --pid #{rails_root}/tmp/pids/thin#{i}.pid --log #{rails_root}/log/thin-#{i}.log --daemonize"