This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I am attesting that this GitHub handle favarete is linked to the Tezos account tz1WQGhuPcsACPuTwxYJ2RVCkXiHJiNh462j for tzprofiles | |
sig:edsigtqmwPNHjoMjuh2dNbUtdw4zpvD8L5SJWphzYBwvhcFWRFuwcGfFxeNnJKfp7WjS6BUZMJewQiF79SjFFprrUcpPvaMzTZT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source /home/project/myenv/bin/activate | |
cd /home/project/server | |
PID=$(ps aux | grep 'uvicorn myapp:app' | grep -v grep | awk {'print $2'} | xargs) | |
if [ "$PID" != "" ] | |
then | |
kill -9 $PID | |
sleep 2 | |
echo "" > nohup.out | |
echo "Restarting FastAPI server" |