11 lines
224 B
Bash
Executable File
11 lines
224 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Set up logs directory
|
|
mkdir -p logs
|
|
|
|
# Start the server and log output
|
|
node server.js > logs/server.log 2>&1 &
|
|
|
|
# Print the PID
|
|
echo "Server started with PID $!"
|
|
echo "View logs with: tail -f logs/server.log" |