Permalink
Browse files

Add examples and namespace ENV options with "RAILS_"

  • Loading branch information...
1 parent c390e60 commit facf2b47a46fae6aa18a6b1a5f6d2dff8714e3e6 @josevalim josevalim committed Dec 23, 2013
@@ -25,4 +25,4 @@ test:
# Do not keep production credentials in the repository,
# instead read the configuration from the environment.
-production: <%%= ENV["DATABASE_URL"] %>
+production: <%%= ENV["RAILS_DATABASE_URL"] %>
@@ -63,4 +63,4 @@ test:
# Do not keep production credentials in the repository,
# instead read the configuration from the environment.
-production: <%%= ENV["DATABASE_URL"] %>
+production: <%%= ENV["RAILS_DATABASE_URL"] %>
@@ -55,4 +55,4 @@ test:
# Do not keep production credentials in the repository,
# instead read the configuration from the environment.
-production: <%%= ENV["DATABASE_URL"] %>
+production: <%%= ENV["RAILS_DATABASE_URL"] %>
@@ -28,4 +28,4 @@ test:
# Do not keep production credentials in the repository,
# instead read the configuration from the environment.
-production: <%%= ENV["DATABASE_URL"] %>
+production: <%%= ENV["RAILS_DATABASE_URL"] %>
@@ -44,4 +44,4 @@ test:
# Do not keep production credentials in the repository,
# instead read the configuration from the environment.
-production: <%%= ENV["DATABASE_URL"] %>
+production: <%%= ENV["RAILS_DATABASE_URL"] %>
@@ -20,4 +20,4 @@ test:
# Do not keep production credentials in the repository,
# instead read the configuration from the environment.
-production: <%%= ENV["DATABASE_URL"] %>
+production: <%%= ENV["RAILS_DATABASE_URL"] %>
@@ -32,6 +32,10 @@ test:
<<: *default
database: <%= app_name %>_test
-# Do not keep production credentials in the repository,
+# Avoid production credentials in the repository,
# instead read the configuration from the environment.
-production: <%%= ENV["DATABASE_URL"] %>
+#
+# Example:
+# mysql2://myuser:mypass@localhost/somedatabase
+#
+production: <%%= ENV["RAILS_DATABASE_URL"] %>
@@ -34,4 +34,4 @@ test:
# Do not keep production credentials in the repository,
# instead read the configuration from the environment.
-production: <%%= ENV["DATABASE_URL"] %>
+production: <%%= ENV["RAILS_DATABASE_URL"] %>
@@ -61,4 +61,8 @@ test:
# Do not keep production credentials in the repository,
# instead read the configuration from the environment.
-production: <%%= ENV["DATABASE_URL"] %>
+#
+# Example:
+# postgres://myuser:mypass@localhost/somedatabase
+#
+production: <%%= ENV["RAILS_DATABASE_URL"] %>
@@ -22,4 +22,8 @@ test:
# Do not keep production credentials in the repository,
# instead read the configuration from the environment.
-production: <%%= ENV["DATABASE_URL"] %>
+#
+# Example:
+# sqlite3://myuser:mypass@localhost/somedatabase
+#
+production: <%%= ENV["RAILS_DATABASE_URL"] %>
@@ -44,4 +44,4 @@ test:
# Do not keep production credentials in the repository,
# instead read the configuration from the environment.
-production: <%%= ENV["DATABASE_URL"] %>
+production: <%%= ENV["RAILS_DATABASE_URL"] %>
@@ -19,4 +19,4 @@ test:
# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
- secret_key_base: <%%= ENV['SECRET_KEY_BASE'] %>
+ secret_key_base: <%%= ENV["RAILS_SECRET_KEY_BASE"] %>

0 comments on commit facf2b4

Please sign in to comment.