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:
parent
0b7ed8ffaf
commit
6c41b54b2e
|
@ -19,7 +19,7 @@ listen (ENV["UNICORN_PORT"] || 3000).to_i
|
||||||
timeout 30
|
timeout 30
|
||||||
|
|
||||||
if !File.exist?("#{discourse_path}/tmp/pids")
|
if !File.exist?("#{discourse_path}/tmp/pids")
|
||||||
Dir.mkdir("#{discourse_path}/tmp/pids")
|
FileUtils.mkdir_p("#{discourse_path}/tmp/pids")
|
||||||
end
|
end
|
||||||
|
|
||||||
# feel free to point this anywhere accessible on the filesystem
|
# feel free to point this anywhere accessible on the filesystem
|
||||||
|
|
Loading…
Reference in New Issue