Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/rietveld/templates/settings.py.erb

Issue 5686568333344768: Issue 2184 - Configure codereview setup to use PostgreSQL (Closed)
Patch Set: Created April 15, 2015, 9:06 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« modules/rietveld/manifests/init.pp ('K') | « modules/rietveld/manifests/init.pp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/rietveld/templates/settings.py.erb
diff --git a/modules/rietveld/templates/settings.py.erb b/modules/rietveld/templates/settings.py.erb
index 4524ca2170f301d6387686a3f35fa9e3d4e9d28c..e1333c78ba42e3a552638db4321a6a6cb0157001 100644
--- a/modules/rietveld/templates/settings.py.erb
+++ b/modules/rietveld/templates/settings.py.erb
@@ -13,12 +13,12 @@ ADMINS = (
MANAGERS = ADMINS
-DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-DATABASE_NAME = 'dev.db' # Or path to database file if using sqlite3.
-DATABASE_USER = '' # Not used with sqlite3.
-DATABASE_PASSWORD = '' # Not used with sqlite3.
-DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
-DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
+DATABASE_ENGINE = '<%= @database['engine'] %>' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+DATABASE_NAME = '<%= @database['name'] %>' # Or path to database file if using sqlite3.
+DATABASE_USER = '<%= @database['user'] %>' # Not used with sqlite3.
+DATABASE_PASSWORD = '<%= @database['password'] %>' # Not used with sqlite3.
+DATABASE_HOST = '<%= @database['host'] %>' # Set to empty string for localhost. Not used with sqlite3.
+DATABASE_PORT = '<%= @database['port'] %>' # Set to empty string for default. Not used with sqlite3.
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
« modules/rietveld/manifests/init.pp ('K') | « modules/rietveld/manifests/init.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld