Sha256: c75d4dd8962d51bb462f5cea0d74d4ad7633c4107bb22afe3d111f2cfbc00e79
Contents?: true
Size: 1.11 KB
Versions: 4
Compression:
Stored size: 1.11 KB
Contents
require 'bundler/setup' require 'hanami/setup' require 'hanami/model' require_relative '../lib/<%= project %>' Hanami.configure do model do ## # Database adapter # # Available options: # # * SQL adapter # adapter :sql, 'sqlite://db/<%= project %>_development.sqlite3' # adapter :sql, 'postgresql://localhost/<%= project %>_development' # adapter :sql, 'mysql://localhost/<%= project %>_development' # adapter :<%= database_config_hash[:type] %>, ENV.fetch('DATABASE_URL') <%- if database_config.sql? -%> ## # Migrations # migrations 'db/migrations' schema 'db/schema.sql' <%- end -%> end mailer do root 'lib/<%= project %>/mailers' # See https://guides.hanamirb.org/mailers/delivery delivery :test end environment :development do # See: https://guides.hanamirb.org/projects/logging logger level: :debug end environment :production do logger level: :info, formatter: :json, filter: [] mailer do delivery :smtp, address: ENV.fetch('SMTP_HOST'), port: ENV.fetch('SMTP_PORT') end end end
Version data entries
4 entries across 4 versions & 1 rubygems