mirror of
https://github.com/Unitech/pm2.git
synced 2026-02-01 16:57:09 +00:00
32 lines
564 B
Bash
32 lines
564 B
Bash
#!/usr/bin/env bash
|
|
|
|
SRC=$(cd $(dirname "$0"); pwd)
|
|
source "${SRC}/include.sh"
|
|
|
|
cd $file_path
|
|
|
|
echo "################## VIZION ###################"
|
|
|
|
mv git .git
|
|
|
|
###############
|
|
$pm2 kill
|
|
$pm2 start killtoofast.js
|
|
sleep 1
|
|
|
|
should 'should have versioning metadata' 'versioning: \[Object\]' 1
|
|
|
|
$pm2 delete all
|
|
$pm2 start killtoofast.js --no-vizion
|
|
sleep 1
|
|
|
|
should 'should not have versioning metadata' 'versioning: \[Object\]' 0
|
|
|
|
$pm2 delete all
|
|
$pm2 start no-vizion.json
|
|
sleep 1
|
|
|
|
should 'should not have versioning metadata' 'versioning: \[Object\]' 0
|
|
|
|
mv .git git
|