Excipient server restart: Difference between revisions

From DISI
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
1. Go to the dev version of Excipients and set the version number set in the __init__.py file
1. Go to the dev version of Excipients and set the version number set in the __init__.py file


2. Run as root ->
2. Create the distribution file
   python setup.py sdist
   python setup.py sdist


3. ssh into nfs-soft and become root ->
3. ssh <super_user>@gimel
  ssh superuser@nfs-soft
  sudo -i


4. sudo -i
5. su - www


4. activate the production server ->
4. activate the production server ->
Line 19: Line 20:
7. Run ->  
7. Run ->  
   pip install dist/CERSI-Excipients-X.Y.Z.tar.gz
   pip install dist/CERSI-Excipients-X.Y.Z.tar.gz
8. ssh to gimel ->
  ssh superuser@gimel
9. get root ->
  sudo -i


8. find the excipients screen ->  
8. find the excipients screen ->  

Revision as of 19:56, 9 February 2017

Excipient Deployment:

1. Go to the dev version of Excipients and set the version number set in the __init__.py file

2. Create the distribution file

 python setup.py sdist

3. ssh <super_user>@gimel

4. sudo -i

5. su - www

4. activate the production server ->

 cd /nfs/soft/www/apps/excipients/envs/production/
 source bin/activate

6. copy over the created dist folder in /nfs/soft/www/apps/excipients/envs/production/

7. Run ->

 pip install dist/CERSI-Excipients-X.Y.Z.tar.gz

8. find the excipients screen ->

  screen -ls

9. switch to excipients screen ->

  screen -dR excip

10. CTRL-C to kill

11. <UP> <ENTER> to rerun

  (this will start the gunicorn server: 
   gunicorn --access-logfile excipients.ucsf.bkslab.org.acc --max-requests 1000 --bind 10.20.0.31:8093 excipients:app --workers 5)