Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dry-web-roda app initialisation issues #98

mlk5060 opened this issue Aug 1, 2019 · 1 comment

dry-web-roda app initialisation issues #98

mlk5060 opened this issue Aug 1, 2019 · 1 comment


Copy link

@mlk5060 mlk5060 commented Aug 1, 2019

After using the following procedure to generate and start a new application, I received some errors that were difficult to diagnose and fix for newcomers:

  1. dry-web-roda new APP_NAME
  2. rake db:create
  3. rerun -- rackup --port 4000

The first issue was that the event sql had not been registered. After some digging, and with help from @solnic on Zulip, I discovered that the issue lay in the system/boot/monitor.rb file. After fixing this, I received a validation error saying that a password was not supplied when initialising the PostgreSQL connection. A fix for this is to specify the username and password as part of the DATABASE_URL variable in the top-level .env created when dry-web-roda new APP_NAME is run. Alternatively, a user could pre-pend the variable declaration to step 3 above. Either way, I think this set-up step could be better explained in the README for first time use?

As discussed with @solnic yesterday, I will make a pull-request for this issue with some fixes and submit for review. Thanks again for all your hard work on this project!

@mlk5060 mlk5060 changed the title PostgreSQL connection incorrect dry-web-roda app initialisation issues Aug 2, 2019
solnic added a commit that referenced this issue Aug 2, 2019
Issue #98

This comment has been minimized.

Copy link

@solnic solnic commented Aug 2, 2019

this was fixed via #99

@solnic solnic closed this Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.