mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2025-12-23 22:48:57 -05:00
- Express.js backend for diagram CRUD operations - Filesystem persistence via Docker volume mount - Automatic storage detection in UI - Overwrite protection with confirmation dialogs - Server storage enabled by default in Docker Closes #48
16 lines
406 B
Bash
16 lines
406 B
Bash
#!/bin/sh
|
|
|
|
# Start Node.js backend if server storage is enabled
|
|
if [ "$ENABLE_SERVER_STORAGE" = "true" ]; then
|
|
echo "Starting FossFLOW backend server..."
|
|
cd /app/packages/fossflow-backend
|
|
npm install --production
|
|
node server.js &
|
|
echo "Backend server started"
|
|
else
|
|
echo "Server storage disabled, backend not started"
|
|
fi
|
|
|
|
# Start nginx
|
|
echo "Starting nginx..."
|
|
nginx -g "daemon off;" |