From e34570a17b6d8122c3eb20ca853416872f7fda84 Mon Sep 17 00:00:00 2001 From: Mateus Rambo Strey <mars11@inf.ufpr.br> Date: Mon, 19 Oct 2015 12:06:58 -0200 Subject: [PATCH] change scripts --- config/puma.rb | 2 -- portalmec.service | 2 -- puma.sh | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/config/puma.rb b/config/puma.rb index 088d7094..9642a0d7 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -7,8 +7,6 @@ threads 1, 6 app_dir = File.expand_path("../..", __FILE__) shared_dir = "#{app_dir}/shared" -daemonize - # Default to production rails_env = ENV['RAILS_ENV'] || "production" environment rails_env diff --git a/portalmec.service b/portalmec.service index 60f49df8..ed539a61 100644 --- a/portalmec.service +++ b/portalmec.service @@ -3,10 +3,8 @@ Description=Control puma for portalmec After=nginx.service [Service] -Type=simple ExecStart=/portalmec/puma.sh start ExecStop=/portalmec/puma.sh stop -Restart=always [Install] WantedBy=multi-user.target diff --git a/puma.sh b/puma.sh index e02e6980..2baa709e 100644 --- a/puma.sh +++ b/puma.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash source /home/.rvm/scripts/rvm export PUMA_APP_DIR=/portalmec -- GitLab