Commits

Chip Collier  committed 822655b

setting database url via environment

  • Participants
  • Parent commits 0b77131

Comments (0)

Files changed (2)

 
 cd velotrakr
 ../bin/python setup.py develop
-../bin/paster serve production.ini http_port=${PORT:-6543}
+../bin/paster serve production.ini http_port=${PORT:-6543} db_url=${DATABASE_URL:-sqlite:///%(here)s/velotrakr.db}

File velotrakr/production.ini

 pyramid.default_locale_name = en
 pyramid.includes = pyramid_tm
 
-sqlalchemy.url = sqlite:///%(here)s/velotrakr.db
+sqlalchemy.url = %(db_url)s
 
 [server:main]
 use = egg:Paste#http