mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-12 21:00:58 +00:00
Add os gem
This commit is contained in:
parent
6e6bfe507d
commit
8326a49ccb
3 changed files with 8 additions and 2 deletions
1
Gemfile
1
Gemfile
|
@ -21,6 +21,7 @@ gem 'connection_pool' # Needed for MT
|
|||
# Web server
|
||||
gem 'faraday'
|
||||
gem 'puma'
|
||||
gem 'os'
|
||||
# gem 'unicorn'
|
||||
|
||||
# Model plugins
|
||||
|
|
|
@ -529,6 +529,7 @@ DEPENDENCIES
|
|||
omniauth
|
||||
omniauth-rails_csrf_protection
|
||||
omniauth-steam
|
||||
os
|
||||
phantomjs
|
||||
poltergeist
|
||||
pry-byebug
|
||||
|
@ -571,4 +572,4 @@ RUBY VERSION
|
|||
ruby 2.6.5p114
|
||||
|
||||
BUNDLED WITH
|
||||
2.1.4
|
||||
2.2.6
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# Load dev vars. These are loaded in application but puma needs them too.
|
||||
require "dotenv"
|
||||
require 'os'
|
||||
Dotenv.load('.env.' + ENV['RAILS_ENV'] + '.local', '.env.local', '.env.' + ENV['RAILS_ENV'], '.env')
|
||||
|
||||
tag 'ENSL'
|
||||
|
@ -19,7 +20,10 @@ app_dir = ENV['APP_PATH'] || '/var/www'
|
|||
|
||||
# Set basic puma settings
|
||||
environment rails_env
|
||||
bind "unix://#{app_dir}/tmp/sockets/puma.#{rails_env}.sock"
|
||||
#if OS.posix?
|
||||
# bind "unix://#{app_dir}/tmp/sockets/puma.#{rails_env}.sock"
|
||||
#end
|
||||
|
||||
port Integer(ENV['PUMA_PORT'] || 4000)
|
||||
|
||||
# Redirect stdout only in production. Dev mode needs it for debug
|
||||
|
|
Loading…
Reference in a new issue