mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
32 lines
756 B
Bash
32 lines
756 B
Bash
#!/usr/bin/env bash
|
|
|
|
SRC=$(cd $(dirname "$0"); pwd)
|
|
source "${SRC}/include.sh"
|
|
|
|
cd $file_path
|
|
|
|
echo "################ HARMONY ES6"
|
|
|
|
$pm2 start harmony.js --node-args="--harmony"
|
|
sleep 2
|
|
$pm2 list
|
|
should 'should not fail when passing node-args=harmony opts in CLUSTERMODE' 'restart_time: 0' 1
|
|
$pm2 delete all
|
|
|
|
echo "################ HARMONY / NODEARGS ES6 FORK MODE"
|
|
|
|
$pm2 start harmony.js --node-args="--harmony" -x
|
|
sleep 2
|
|
$pm2 list
|
|
should 'should not fail when passing node-args=harmony opts in FORKMODE' 'restart_time: 0' 1
|
|
$pm2 delete all
|
|
|
|
echo "################## NODE ARGS VIA JSON"
|
|
|
|
$pm2 start harmony.json
|
|
sleep 2
|
|
$pm2 list
|
|
should 'should not fail when passing harmony option to V8 via node_args in JSON files' 'restart_time: 0' 1
|
|
|
|
$pm2 delete all
|