Skip to content

Commit

Permalink
NN-527 add restart
Browse files Browse the repository at this point in the history
  • Loading branch information
dyusuf committed Jul 26, 2024
1 parent 32ef03c commit c3e135c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ deployment:
$(MAKE) build > /home/ubuntu/logs/build.log 2>&1
cd backend/src; nohup sudo env "PATH=$$PATH" python main.py --pid > /home/ubuntu/logs/server.log 2>&1

restart:
sudo kill `cat backend/src/process.pid` > /home/ubuntu/logs/kill.log 2>&1 || true
cd backend/src; nohup sudo env "PATH=$$PATH" python main.py --pid > /home/ubuntu/logs/server.log 2>&1

lint:
find . -name "*.py" | xargs black -l 120 --target-version=py311

Expand Down

0 comments on commit c3e135c

Please sign in to comment.