FIX: create tmp if it doesn't exist when creating tmp/pids

I get this error if I stop a dev server, ``rm -rf tmp`` and start it again:
```
`mkdir': No such file or directory @ dir_s_mkdir - /Users/angusmcleod/discourse/discourse/tmp/pids (Errno::ENOENT)
```
This fixes it.

See: f3549291a3 (diff-26ac62db6c6a4582de3bbf2615790c23R22)
This commit is contained in:
Angus McLeod 2018-08-08 14:49:09 +10:00 committed by Sam
parent 0b7ed8ffaf
commit 6c41b54b2e

View File

@ -19,7 +19,7 @@ listen (ENV["UNICORN_PORT"] || 3000).to_i
timeout 30
if !File.exist?("#{discourse_path}/tmp/pids")
Dir.mkdir("#{discourse_path}/tmp/pids")
FileUtils.mkdir_p("#{discourse_path}/tmp/pids")
end
# feel free to point this anywhere accessible on the filesystem