summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLogan Fick <logaldeveloper@protonmail.com>2018-05-27 18:09:46 -0400
committerLogan Fick <logaldeveloper@protonmail.com>2018-05-27 18:09:46 -0400
commit3d8199c9f9186cec4b331edc50d99e5f1d5d11f2 (patch)
tree1d6d5f6283fd15a84c17e538bb105ad958a1bbcc /config
parent8f16fd709da25abda116e09015409d642932b85e (diff)
Reverted messy attempt at switch to Puma as app server.
Diffstat (limited to 'config')
-rw-r--r--config/puma.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/config/puma.rb b/config/puma.rb
deleted file mode 100644
index ce9e7e7..0000000
--- a/config/puma.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-workers 2
-
-threads 2, 4
-
-app_dir = File.expand_path("../..", __FILE__)
-shared_dir = "#{app_dir}/shared"
-
-rails_env = ENV['RAILS_ENV'] || "production"
-environment rails_env
-
-bind "localhost:8080"
-
-stdout_redirect "#{shared_dir}/log/puma.stdout.log", "#{shared_dir}/log/puma.stderr.log", true
-
-pidfile "#{shared_dir}/pids/puma.pid"
-state_path "#{shared_dir}/pids/puma.state"
-activate_control_app
-
-on_worker_boot do
- require "active_record"
- ActiveRecord::Base.connection.disconnect! rescue ActiveRecord::ConnectionNotEstablished
- ActiveRecord::Base.establish_connection(YAML.load_file("#{app_dir}/config/database.yml")[rails_env])
-end