mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
33 lines
576 B
Bash
33 lines
576 B
Bash
#!/usr/bin/env bash
|
|
|
|
SRC=$(cd $(dirname "$0"); pwd)
|
|
source "${SRC}/../include.sh"
|
|
|
|
cd $file_path/interpreter
|
|
|
|
########### typescript fork test
|
|
$pm2 delete all
|
|
|
|
>typescript.log
|
|
|
|
$pm2 start echo.ts -o typescript.log --merge-logs
|
|
|
|
sleep 1.5
|
|
|
|
grep "Hello Typescript!" typescript.log
|
|
spec "Should work on Typescript files in fork mode"
|
|
|
|
# ########### typescript cluster test
|
|
$pm2 delete all
|
|
|
|
>typescript.log
|
|
|
|
$pm2 start echo.tsx -o typescript.log --merge-logs
|
|
|
|
sleep 1.5
|
|
|
|
grep "Hello Typescript!" typescript.log
|
|
spec "Should work on Typescript files in fork mode"
|
|
|
|
$pm2 delete all
|