This commit is contained in:
Gwenhael Le Moine 2015-01-11 09:42:24 +01:00
parent 0211e874dc
commit 66a08806f5

View file

@ -2,17 +2,15 @@
CWD=$(pwd)
PIDFILE='$CWD/puma.pid'
SERVER='bundle exec puma'
SERVER_OPTIONS=' --daemon --pidfile $PIDFILE'
SERVER_OPTIONS=' --daemon --pidfile ./puma.pid'
function start() {
$SERVER $SERVER_OPTIONS
}
function stop() {
[ -e $PIDFILE ] && kill $(cat $PIDFILE) && rm $PIDFILE
[ -e $PIDFILE ] && kill $(cat ./puma.pid)
}
function restart() {