Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

ssh root@IP_Address -p 22
sudo apt update
sudo adduser rabbi
sudo adduser rabbi sudo
cd /home/rabbi/foyezrabbi
sudo apt install nginx
sudo nano /etc/nginx/sites-enabled/flask_app
server {
    listen 80;
    server_name foyezrabbi.com;

    location / {
        proxy_pass http://127.0.0.1:5000;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}
sudo unlink /etc/nginx/sites-enabled/default
sudo nginx -t
sudo systemctl restart nginx
sudo nginx -s reload
sudo apt install python3
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
sudo apt install gunicorn3
sudo gunicorn3 --workers=3 run:app
sudo gunicorn3 --bind 0.0.0.0:8000 --workers=3 run:app
pkill gunicorn3 #to kill all gunicorn3
sudo fuser -k 8000/tcp  #to kill the port
sudo ufw allow 8000
nohup /path/to/test.py &
ps ax | grep test.py
sudo killall {processName = python}

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors