-
Notifications
You must be signed in to change notification settings - Fork 1
Deploy instruction
bil022 edited this page Jul 7, 2022
·
8 revisions
- ssh login:
ssh [email protected]
, password: - Open screen previous session:
screen -D -RR
; if no old screen session existed, just proceed to open a new session. - Use
ctr+j
to jump to next screen window and usectr+c
to create a new screen window - Run postgres in one screen window: first switch to postgres account
su postgres
(password:) and thenpostgres -D /usr/local/pgsql/data >pg_logfile 2>&1 &
and runpsql -d django_data
to log into the DB. - Run Django in another screen window:
source activate django
and thenpython3 manage.py runserver 0.0.0.0:8000
sudo runuser postgres
cd
nohup postgres -D /usr/local/pgsql/data > pg_logfile 2>&1 &
exit
source activate django
cd ~/epigen_ucsd_django
nohup python3 manage.py runserver 0.0.0.0:8000 >& runserver.log &