Updated README, fixed a few bugs with user creation, and added docker support to run MongoDB (needs testing)
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
#!/bin/sh
|
||||
# Start MongoDB in the background before the delay
|
||||
mongod --fork --logpath /var/log/mongodb.log --bind_ip 0.0.0.0
|
||||
|
||||
# Start NGINX in background
|
||||
# Delay for 5 seconds to ensure MongoDB has started
|
||||
sleep 5
|
||||
|
||||
# Start NGINX in the background
|
||||
nginx -g "daemon off;" &
|
||||
|
||||
# Start Node.js backend
|
||||
node src/backend/server.cjs
|
||||
node src/backend/ssh.cjs &
|
||||
node src/backend/database.cjs &
|
||||
|
||||
# Keep container running
|
||||
# Wait for processes to keep the container running
|
||||
wait
|
||||
Reference in New Issue
Block a user