From 3eb1848fbaaa1cf1add7488e8bdf3b9fa76f5b37 Mon Sep 17 00:00:00 2001 From: Phyo Date: Thu, 15 Jun 2017 12:30:13 +0630 Subject: [PATCH] Puma for production --- config/puma.rb.production | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 config/puma.rb.production diff --git a/config/puma.rb.production b/config/puma.rb.production new file mode 100644 index 00000000..04ae9ee4 --- /dev/null +++ b/config/puma.rb.production @@ -0,0 +1,9 @@ +application_path = '/home/superuser/Application/production/sxrestaurant' +directory application_path +environment 'production' +daemonize true +pidfile "#{application_path}/tmp/pids/puma.pid" +state_path "#{application_path}/tmp/pids/puma.state" +stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log" +bind 'tcp://0.0.0.0:9292' +workers 2