Excipient server restart: Difference between revisions
Jump to navigation
Jump to search
Enkhjargal (talk | contribs) No edit summary |
Enkhjargal (talk | contribs) No edit summary |
||
Line 11: | Line 11: | ||
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. Create the distribution file | 2. Create the distribution file | ||
python setup.py sdist | python setup.py sdist | ||
3. ssh gimel | 3. ssh gimel | ||
4. su - www | 4. su - www | ||
5. activate the production server -> | 5. activate the production server -> | ||
cd /nfs/soft/www/apps/excipients/envs/production/ | 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/ | 6. copy over the created dist folder in /nfs/soft/www/apps/excipients/envs/production/ | ||
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. | 8. | ||
gunicorn --access-logfile excipients.ucsf.bkslab.org.acc --max-requests 1000 --bind 10.20.0.31:8093 excipients:app --workers 5 --timeout 1000) | 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:32, 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
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)