mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
23 lines
319 B
Bash
23 lines
319 B
Bash
#!/usr/bin/env bash
|
|
|
|
SRC=$(cd $(dirname "$0"); pwd)
|
|
source "${SRC}/include.sh"
|
|
|
|
cd $file_path
|
|
|
|
echo -e "\033[1mRunning tests:\033[0m"
|
|
|
|
$pm2 kill
|
|
|
|
>out-rel.log
|
|
|
|
$pm2 start echo.js -o out-rel.log --merge-logs
|
|
|
|
$pm2 reloadLogs
|
|
|
|
sleep 1
|
|
|
|
grep "Reloading log..." out-rel.log
|
|
|
|
spec "Should have started the reloading action"
|