Difference between revisions of "Excipients"

From DISI
Jump to navigation Jump to search
Line 1: Line 1:
Excipient Deployment:
+
Excipient Server Restart:
  
1. Go to the dev version of Excipients and set the version number set in the __init__.py file
+
  1. ssh gimel
 +
  2. become www
 +
  3. activate the production server ->
 +
    cd /nfs/soft/www/apps/excipients/envs/production/
 +
    source bin/activate
 +
  4. gunicorn --access-logfile excipients.ucsf.bkslab.org.acc --max-requests 1000 --bind 10.20.0.31:8093 excipients:app --workers 5 --timeout 1000
  
2. Create the distribution file
+
[[Excipient Installment:]]
  python setup.py sdist
 
  
3.  
+
  1. Go to the dev version of Excipients and set the version number set in the __init__.py file
  ssh <super_user>@gimel
 
  
4.  
+
  2. Create the distribution file
  sudo -i
+
    python setup.py sdist
  
5.  
+
  3. ssh gimel
  su - www
 
  
4. activate the production server ->
+
  4. su - www
  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/  
+
  5. activate the production server ->
 +
    cd /nfs/soft/www/apps/excipients/envs/production/
 +
      source bin/activate
  
7. Run ->
+
  6. copy over the created dist folder in /nfs/soft/www/apps/excipients/envs/production/  
  pip install dist/CERSI-Excipients-X.Y.Z.tar.gz
 
  
8. find the excipients screen ->  
+
  7. Run ->  
  screen -ls
+
    pip install dist/CERSI-Excipients-X.Y.Z.tar.gz
  
9. switch to excipients screen ->
+
  8.
  screen -dR excip
+
    gunicorn --access-logfile excipients.ucsf.bkslab.org.acc --max-requests 1000 --bind 10.20.0.31:8093 excipients:app --workers 5 --timeout 1000)
 
 
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 --timeout 1000)
 

Revision as of 20:29, 24 April 2017

Excipient Server Restart:

 1. ssh gimel
 2. become www
 3. activate the production server ->
    cd /nfs/soft/www/apps/excipients/envs/production/
    source bin/activate
 4. gunicorn --access-logfile excipients.ucsf.bkslab.org.acc --max-requests 1000 --bind 10.20.0.31:8093 excipients:app --workers 5 --timeout 1000

Excipient Installment:

 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 gimel
 4. su - www
 5. 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.
    gunicorn --access-logfile excipients.ucsf.bkslab.org.acc --max-requests 1000 --bind 10.20.0.31:8093 excipients:app --workers 5 --timeout 1000)