mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2024-12-26 09:59:18 +01:00
working
This commit is contained in:
parent
0211e874dc
commit
66a08806f5
1 changed files with 2 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue