mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 18:53:58 +01:00
20 lines
433 B
Bash
Executable file
20 lines
433 B
Bash
Executable file
# Script to start the production server
|
|
|
|
# Commit to the production branch
|
|
git commit -am "Auto-trigger - Production server started" && git push origin Production
|
|
|
|
# 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
|
|
|
|
# Start screen
|
|
screen -S nova-api python run prod && sleep 5
|