6 lines
200 B
Bash
Executable File
6 lines
200 B
Bash
Executable File
#!/bin/bash
|
|
cd /opt/front-dev
|
|
nohup npm run backend > /opt/front-dev/logs/backend.log 2>&1 &
|
|
echo $! > /opt/front-dev/backend.pid
|
|
echo "Dev backend started with PID $(cat /opt/front-dev/backend.pid)"
|