Skip to content

Deploy instruction

bil022 edited this page Jul 7, 2022 · 8 revisions

Deploy epigen_lims on epigenomics.sdsc.edu

  1. ssh login: ssh [email protected], password:
  2. Open screen previous session: screen -D -RR; if no old screen session existed, just proceed to open a new session.
  3. Use ctr+j to jump to next screen window and use ctr+c to create a new screen window
  4. Run postgres in one screen window: first switch to postgres account su postgres (password:) and then postgres -D /usr/local/pgsql/data >pg_logfile 2>&1 & and run psql -d django_data to log into the DB.
  5. Run Django in another screen window: source activate django and then python3 manage.py runserver 0.0.0.0:8000

Commands (Bin)

  1. sudo runuser postgres
  • cd
  • nohup postgres -D /usr/local/pgsql/data > pg_logfile 2>&1 &
  • exit
  1. source activate django
  2. cd ~/epigen_ucsd_django
  3. nohup python3 manage.py runserver 0.0.0.0:8000 >& runserver.log &
Clone this wiki locally