summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-09-13 19:55:21 +0200
committerHarald Eilertsen <haraldei@anduin.net>2018-09-13 19:55:21 +0200
commit452e839dc2d1ea099afce845dc965a8288fa12c5 (patch)
treef7be53f492731c22153a4d5cac29b0e831d979f5
parent76ca5a6771768478fefc67ba7de64d9640677bd0 (diff)
downloadnorsk-urskog-registrations-452e839dc2d1ea099afce845dc965a8288fa12c5.tar.gz
norsk-urskog-registrations-452e839dc2d1ea099afce845dc965a8288fa12c5.tar.bz2
norsk-urskog-registrations-452e839dc2d1ea099afce845dc965a8288fa12c5.zip
Another fix for prod/dev logic in puma config.
-rw-r--r--config/puma.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/puma.rb b/config/puma.rb
index 619ee43..04856d0 100644
--- a/config/puma.rb
+++ b/config/puma.rb
@@ -1,7 +1,7 @@
#!/usr/bin/env puma
if @config.environment_str == "production"
- root = File.expand_path('../', __FILE__)
+ root = File.expand_path('../', File.dirname(__FILE__))
socket = "unix://#{root}/tmp/sockets/puma.sock"
else
root = "."