Putty 실행 후 배포까지의 코드들

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install git

sudo apt-get install python3-pip

sudo apt-get install python3.10-venv

sudo pip3 install django

pip3 install --upgrade django

ssh-keygen -t ed25519 -C "[email protected]"

ssh-add ~/.ssh/id_ed25519

ssh -T [email protected]

git init

git clone {원격 저장소 주소}

sudo apt-get install nginx

source venv/bin/activate

cd GuideForBean/GuideForBean/GuideForBean/

python manage.py runserver 0.0.0.0:8000

ctrl + z

bg

disown -h

ps auxw | grep runserver

kill -9 번호