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
|
|
|
|
git commit -am "Auto-trigger - Production server started" && git push origin Production
|
|
|
|
|
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
|
|
|
|
|
2023-08-21 20:58:05 +02:00
|
|
|
# Kill the production server
|
|
|
|
fuser -k 2333/tcp
|
|
|
|
|
2023-08-16 15:06:16 +02:00
|
|
|
# Start screen
|
2023-08-23 23:28:38 +02:00
|
|
|
screen -S nova-api python run prod && sleep 5
|