nova-api/screen.sh

20 lines
435 B
Bash
Raw Normal View History

2023-08-16 15:06:16 +02:00
# Script to start the production server
2023-08-17 16:47:54 +02:00
# Commit to the production branch
2023-08-24 14:57:36 +02:00
# git commit -am "Auto-trigger - Production server started" && git push origin Production
2023-08-17 16:47:54 +02:00
2023-08-16 15:06:16 +02:00
# Copy files to production
cp -r * /home/nova-prod
# Copy env file to production
cp env/.prod.env /home/nova-prod/.env
# Change directory
cd /home/nova-prod
# Kill the production server
fuser -k 2333/tcp
2023-08-16 15:06:16 +02:00
# Start screen
screen -S nova-api python run prod && sleep 5