lib/natra/generators/app/templates/secrets.env in natra-0.0.2 vs lib/natra/generators/app/templates/secrets.env in natra-0.0.3
- old
+ new
@@ -1,9 +1,8 @@
SINATRA_ENV=development
LOG_LEVEL=Logger::INFO
-<%- if @database=='postgres' -%>
-DATABASE_URL=postgresql://docker:docker@db:5432/<%= @name.camel_case %>?pool=5
+DEV_DATABASE_URL=postgresql://docker:docker@db:5432/<%= @name.camel_case %>_dev?pool=5
+PROD_DATABASE_URL=postgresql://docker:docker@db:5432/<%= @name.camel_case %>_prod?pool=5
+TEST_DATABASE_URL=postgresql://docker:docker@db:5432/<%= @name.camel_case %>_test?pool=5
POSTGRES_USER=docker
POSTGRES_PASSWORD=docker
-POSTGRES_DB=<%= @name.camel_case %>
-<%- end -%>
-
+POSTGRES_DB=<%= @name.camel_case %>_dev