mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
25 lines
484 B
Bash
25 lines
484 B
Bash
#!/usr/bin/env bash
|
|
|
|
SRC=$(cd $(dirname "$0"); pwd)
|
|
source "${SRC}/include.sh"
|
|
|
|
echo -e "\033[1mStartOrX.sh:\033[0m"
|
|
|
|
cd $file_path
|
|
|
|
$pm2 startOrRestart all.json
|
|
|
|
should 'should start processes' 'online' 6
|
|
|
|
$pm2 startOrRestart all.json
|
|
|
|
should 'should has restarted app' 'restart_time: 1' 6
|
|
|
|
$pm2 startOrReload all.json
|
|
|
|
should 'should has reloaded app' 'restart_time: 2' 6
|
|
|
|
# slow
|
|
# $pm2 startOrGracefulReload all.json
|
|
# should 'should has graceful reloaded app' 'restart_time: 3' 8
|