Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jredd committed Dec 9, 2014
2 parents 851ef5c + df59a2d commit 2c2c69f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
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.

0 comments on commit 2c2c69f

Please sign in to comment.