-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
|
||
#Redd Manager | ||
Please be sure to install the requirements in the requirements.txt fiel. Being able to work on python virtual environments is key as well for Gunicorn to function. | ||
|
||
###Django settings.py data setup | ||
I do not keep the db server setup the Django's settings.py needs on git since it contains password information but it looks a little something like this and connects to a local postgreSQL server. I've also included a copy of my nginx server config file | ||
|
||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.postgresql_psycopg2', | ||
'NAME': 'db_name', | ||
'USER': 'john', | ||
'PASSWORD': 'reallyhardPWhere', | ||
'HOST': 'localhost', | ||
'PORT': '5432' | ||
} | ||
} | ||
|
||
|
||
###Gunicorn instantiation | ||
This is how I spin up the Application instances. I have to be inside of the redd folder containing the django application. | ||
|
||
gunicorn redd.wsgi:application --bind=127.0.0.1:9001 | ||
gunicorn redd.wsgi:application --bind=127.0.0.1:7001 | ||
|
||
###Ember Front End | ||
The front end is pretty simple. Just point nginx to the folder that contains the index.html file. | ||
|
||
##Heads up | ||
|
||
Be sure to change the logging file paths in the nginx settings files you use them. Also be sure to point the Django's servers in the .conf file at the proper directory. |