Add database config

This commit is contained in:
Christine Dodrill 2015-02-03 11:52:19 -08:00
parent a036743956
commit 441a9e0d9a
2 changed files with 7 additions and 0 deletions

View File

@ -4,3 +4,4 @@ config "development", ->
config "docker", ->
port os.getenv "PORT"
postgresql_url os.getenv "DATABASE_URL"

View File

@ -6,6 +6,8 @@ env PORT;
env GITHUB_TOKEN;
env GIT_REV;
env MAILGUN_KEY;
env DATABASE_URL;
env PASSWORD;
events {
worker_connections 1024;
@ -14,6 +16,10 @@ events {
http {
include mime.types;
upstream database {
postgres_server ${{pg POSTGRESQL_URL}};
}
server {
listen ${{PORT}};
lua_code_cache ${{CODE_CACHE}};