Sha256: 0889f1d9dbed54ba78b9f5a4bf628cedb438a69d6076ec9b9cf662c10feff65e
Contents?: true
Size: 984 Bytes
Versions: 3
Compression:
Stored size: 984 Bytes
Contents
require 'hanami/model' require 'hanami/mailer' Dir["#{ __dir__ }/<%= config[:app_name] %>/**/*.rb"].each { |file| require_relative file } Hanami::Model.configure do # Database adapter # # Available options: # # * SQL adapter # adapter :sql, 'sqlite://db/<%= config[:app_name] %>_development.sqlite3' # adapter :sql, 'postgres://localhost/<%= config[:app_name] %>_development' # adapter :sql, 'mysql://localhost/<%= config[:app_name] %>_development' # adapter :<%= config[:database_config][:type] %>, ENV['DATABASE_URL'] <%- if config[:database_config][:type] == :sql -%> ## # Migrations # migrations 'db/migrations' schema 'db/schema.sql' <%- end -%> end.load! Hanami::Mailer.configure do root "#{ __dir__ }/<%= config[:app_name] %>/mailers" # See http://hanamirb.org/guides/mailers/delivery delivery do development :test test :test # production :smtp, address: ENV['SMTP_PORT'], port: 1025 end end.load!
Version data entries
3 entries across 3 versions & 1 rubygems