/
githubmirror
/
pm2
Обзор
Документация
Войти
/
githubmirror
/
pm2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/e2e/cli/resurrect.sh
28 строк
683 B
Unitech
refactor: e2e rename
26 фев 2018, 22:41
26 фев 2018, 22:41
8a7db95
Код
Авторство
О чём код?
#!/usr/bin/env bash SRC=$(cd $(dirname "$0"); pwd) source "${SRC}/../include.sh" cd $file_path $pm2 start echo.js -i 4 spec "should start 4 processes" should 'should have 4 apps started' 'online' 4 $pm2 save $pm2 resurrect spec "should resurrect from dump" should 'should have still 4 apps started' 'online' 4 $pm2 save $pm2 delete all echo "[{" > ~/.pm2/dump.pm2 $pm2 resurrect spec "should resurrect from backup if dump is broken" ls ~/.pm2/dump.pm2 ispec "should delete broken dump" should 'should have still 4 apps started' 'online' 4 $pm2 delete all $pm2 resurrect spec "should resurrect from backup if dump is missing" should 'should have still 4 apps started' 'online' 4