Skip to content

Commit

Permalink
Merge pull request #99 from mlk5060/issue-#98
Browse files Browse the repository at this point in the history
Issue #98
  • Loading branch information
solnic committed Aug 2, 2019
2 parents a47a63b + 985e55a commit 92ad8c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/dry/web/roda/templates/README.md.tt
Expand Up @@ -5,7 +5,9 @@ Welcome! You’ve generated an app using dry-web-roda.
## First steps

1. Run `bundle`
2. Review `.env` & `.env.test` (and make a copy to e.g. `.example.env` if you want example settings checked in)
2. Review `.env` & `.env.test` (and make a copy to e.g. `.example.env` if you want example settings checked in). In
particular, ensure that your PostgreSQL username and password are specified in the `DATABASE_URL` variable as follows:
`postgres://username:password@your_host/...`.
3. Run `bundle exec rake db:create` to create the development database.
4. Run `RACK_ENV=test bundle exec rake db:create` to create the test database.
5. Add your own steps to `bin/setup`
Expand Down
4 changes: 2 additions & 2 deletions lib/dry/web/roda/templates/monitor.rb.tt
@@ -1,10 +1,10 @@
<%= config[:camel_cased_app_name] %>::Container.boot :monitor do
init do
require "dry/monitor"
Dry::Monitor.load_extensions(:sql)
require "dry/monitor/sql/logger"
end

start do
notifications.register_event(:sql)
Dry::Monitor::SQL::Logger.new(logger).subscribe(notifications)
end
end

0 comments on commit 92ad8c3

Please sign in to comment.