Fix reinstall script - ensure data directory exists

This commit is contained in:
nmemmert committed 2025-12-11 13:09:18 -05:00
1 parent c59e94547e
commit 5a6ce1db00
1 file changed
+4
+4
View File
@@ -50,6 +50,10 @@ if [ ! -f ".env" ]; then
cp .env.example .env 2>/dev/null || echo "NODE_ENV=production" > .env
fi
# Create data directory if it doesn't exist
echo "5️⃣ Creating data directory..."
mkdir -p data
# Start with PM2
echo "6️⃣ Starting application..."
pm2 start server/index.js --name resource-monitor