Fix reinstall script - ensure data directory exists
This commit is contained in:
1 parent
c59e94547e
commit
5a6ce1db00
1 file changed
+4
@@ -50,6 +50,10 @@ if [ ! -f ".env" ]; then
|
|||||||
cp .env.example .env 2>/dev/null || echo "NODE_ENV=production" > .env
|
cp .env.example .env 2>/dev/null || echo "NODE_ENV=production" > .env
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Create data directory if it doesn't exist
|
||||||
|
echo "5️⃣ Creating data directory..."
|
||||||
|
mkdir -p data
|
||||||
|
|
||||||
# Start with PM2
|
# Start with PM2
|
||||||
echo "6️⃣ Starting application..."
|
echo "6️⃣ Starting application..."
|
||||||
pm2 start server/index.js --name resource-monitor
|
pm2 start server/index.js --name resource-monitor
|
||||||
|
|||||||
Reference in new issue
Block a user