Skip to content

Create and document outside-of-repo-code production Django/Roundware settings#209

Merged
hburgund merged 1 commit intoroundware:developfrom
13rac1:201/external-prod-settings
Feb 7, 2015
Merged

Create and document outside-of-repo-code production Django/Roundware settings#209
hburgund merged 1 commit intoroundware:developfrom
13rac1:201/external-prod-settings

Conversation

@13rac1
Copy link
Copy Markdown
Member

@13rac1 13rac1 commented Feb 3, 2015

Could use a better explanation but this covers it:

Production Settings

The production Roundware/Django settings file used by WSGI Apache2 is stored outside of the source code directory in the file /var/www/roundware/settings/roundware_production.py. All settings in /var/www/roundware/source/roundware/settings/common.py can be overridden there. Do not modify any file within the /var/www/roundware/source directory unless you intend to maintain your own fork of Roundware Server.

@13rac1
Copy link
Copy Markdown
Member Author

13rac1 commented Feb 3, 2015

"Upgrade" process for existing installs after this pull request is merged:

cd roundware-server
# Assumes unmodified git clone of http://github.com/roundware/roundware-server.git develop branch
git pull
sudo mkdir /var/www/roundware/settings
sudo cp files/var-www-roundware-settings.py /var/www/roundware/settings/roundware_production.py
sudo chown roundware:roundware -R /var/www/roundware/settings
sudo ./deploy.sh

@hburgund
Copy link
Copy Markdown
Member

hburgund commented Feb 7, 2015

tested this with the "upgrade" as well as fresh VM locally and then tried to over-ride a few different settings and it all worked as advertised.

hburgund added a commit that referenced this pull request Feb 7, 2015
Create and document outside-of-repo-code production Django/Roundware settings
@hburgund hburgund merged commit dd3e322 into roundware:develop Feb 7, 2015
@13rac1 13rac1 deleted the 201/external-prod-settings branch February 7, 2015 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants