mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-13 05:10:59 +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
|
# Web server
|
||||||
gem 'faraday'
|
gem 'faraday'
|
||||||
gem 'puma'
|
gem 'puma'
|
||||||
|
gem 'os'
|
||||||
# gem 'unicorn'
|
# gem 'unicorn'
|
||||||
|
|
||||||
# Model plugins
|
# Model plugins
|
||||||
|
|
|
@ -529,6 +529,7 @@ DEPENDENCIES
|
||||||
omniauth
|
omniauth
|
||||||
omniauth-rails_csrf_protection
|
omniauth-rails_csrf_protection
|
||||||
omniauth-steam
|
omniauth-steam
|
||||||
|
os
|
||||||
phantomjs
|
phantomjs
|
||||||
poltergeist
|
poltergeist
|
||||||
pry-byebug
|
pry-byebug
|
||||||
|
@ -571,4 +572,4 @@ RUBY VERSION
|
||||||
ruby 2.6.5p114
|
ruby 2.6.5p114
|
||||||
|
|
||||||
BUNDLED WITH
|
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.
|
# Load dev vars. These are loaded in application but puma needs them too.
|
||||||
require "dotenv"
|
require "dotenv"
|
||||||
|
require 'os'
|
||||||
Dotenv.load('.env.' + ENV['RAILS_ENV'] + '.local', '.env.local', '.env.' + ENV['RAILS_ENV'], '.env')
|
Dotenv.load('.env.' + ENV['RAILS_ENV'] + '.local', '.env.local', '.env.' + ENV['RAILS_ENV'], '.env')
|
||||||
|
|
||||||
tag 'ENSL'
|
tag 'ENSL'
|
||||||
|
@ -19,7 +20,10 @@ app_dir = ENV['APP_PATH'] || '/var/www'
|
||||||
|
|
||||||
# Set basic puma settings
|
# Set basic puma settings
|
||||||
environment rails_env
|
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)
|
port Integer(ENV['PUMA_PORT'] || 4000)
|
||||||
|
|
||||||
# Redirect stdout only in production. Dev mode needs it for debug
|
# Redirect stdout only in production. Dev mode needs it for debug
|
||||||
|
|
Loading…
Reference in a new issue