@cremini/skillpack 1.0.9-im.3 → 1.0.9-im.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/runtime/README.md +4 -5
- package/runtime/ecosystem.config.cjs +17 -1
- package/runtime/server/package-lock.json +1138 -1
- package/runtime/server/package.json +1 -0
- package/runtime/start.bat +6 -3
- package/runtime/start.sh +7 -4
package/runtime/start.bat
CHANGED
|
@@ -5,11 +5,14 @@ echo.
|
|
|
5
5
|
echo Starting Skills Pack...
|
|
6
6
|
echo.
|
|
7
7
|
|
|
8
|
-
if not exist "server\node_modules" (
|
|
8
|
+
if not exist "server\node_modules\.bin\pm2.cmd" (
|
|
9
9
|
echo Installing dependencies...
|
|
10
10
|
cd server && npm ci --omit=dev && cd ..
|
|
11
11
|
echo.
|
|
12
12
|
)
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
set "PM2_BIN=server\node_modules\.bin\pm2.cmd"
|
|
15
|
+
|
|
16
|
+
echo Launching under PM2...
|
|
17
|
+
echo.
|
|
18
|
+
"%PM2_BIN%" startOrRestart ecosystem.config.cjs --update-env
|
package/runtime/start.sh
CHANGED
|
@@ -11,12 +11,15 @@ echo ""
|
|
|
11
11
|
echo " Starting ${PACK_NAME}..."
|
|
12
12
|
echo ""
|
|
13
13
|
|
|
14
|
-
# Install dependencies
|
|
15
|
-
if [ ! -
|
|
14
|
+
# Install dependencies (including local PM2)
|
|
15
|
+
if [ ! -x "server/node_modules/.bin/pm2" ]; then
|
|
16
16
|
echo " Installing dependencies..."
|
|
17
17
|
cd server && npm install --omit=dev && cd ..
|
|
18
18
|
echo ""
|
|
19
19
|
fi
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
PM2_BIN="./server/node_modules/.bin/pm2"
|
|
22
|
+
|
|
23
|
+
echo " Launching under PM2..."
|
|
24
|
+
echo ""
|
|
25
|
+
"$PM2_BIN" startOrRestart ecosystem.config.cjs --update-env
|