django how to remote start / stop app

Show all process with runserver key command

ps auxw | grep runserver
de        10392 
kill 10392
start service linux/fedora

run terminal

screen

manage.py runserver 0.0.0.0:7777 (or any other port)

You can do sh file like this and start your app

#!/bin/bash
cd /home/appuser/Documents/
source venv/bin/activate
cd /home/appuser/Documents/git_bubnov/bubnov_project
python3 manage.py runserver 0.0.0.0:7777





Comments

Popular posts from this blog