Warning |
---|
Ensure python3.6 and git25 are selected in this environment. The default python is 2.7 and the default git 1.7 neither of these are new enough to use for this project. Newer versions from the software collection have been installed and can be enabled by:
|
Nephwork (Browse Miscellaneous / nephwork.renalreg.org - Bitbucket (ukrdc.org)) is deployed on the renalreg server on the url https://nephwork.renalreg.org. (it is also configured for https://nephwork.renal.org )
...
Code Block | ||
---|---|---|
| ||
# Settings files ls -l nephwork/settings total 20 -rw-r--r--. 1 nephwork nephwork 3975 Nov 25 16:32 base.py -rw-r--r--. 1 nephwork nephwork 29 Nov 25 16:32 __init__.py -rw-r--r--. 1 nephwork nephwork 429 Nov 25 16:32 local.py -rw-r--r--. 1 nephwork nephwork 1213 Nov 25 16:32 production.py # Configure productions settings export DJANGO_SETTINGS_MODULE=nephwork.settings.production |
Note |
---|
Note the environment needs setting before running the start script to ensure the correct settings file is picked up export DJANGO_SETTINGS_MODULE=nephwork.settings.production; To export DJANGO_SETTINGS_MODULE value permanently in every nephwork user session, add the line export DJANGO_SETTINGS_MODULE=nephwork.settings.production in ~/.bash_profile. To load the new variable in the current session run: $ source ~/.bash_profile |
The site is managed using a script in /home/nephwork/bin/nephwork
which takes commands start, stop, force-reload/restart
...