bullet-train-co / bullet_train-base

MIT License
10 stars 16 forks source link

`BASE_URL` related error isn't configured correctly for Render deployment #138

Closed gazayas closed 1 year ago

gazayas commented 1 year ago

Automatically generated environment variable doesn't raise error

One problem is the ENV["BASE_URL"] environment variable: https://github.com/bullet-train-co/bullet_train-base/blob/67bc4d9ae2bd8748e75ab2a07d6166d3ea440f69/lib/bullet_train.rb#L43-L49

The error isn't raised in production because we're automatically generating the environment variable in the blueprint with a random value: render base_url

This should be a pretty easy fix since we just have to tell the developer to configure the correct URL in the environment group they're linked to, but I'm kind of stumped on the second problem.

Connection refused

After correctly adding the BASE_URL to the environment group, I'm getting a connection refused error when trying to send the email, but before that the worker instance just shuts down: bye!

connection refused

gazayas commented 1 year ago

For the second issue I'm thinking it's just the SMTP settings, trying to set things up with Mailgun now.

gazayas commented 1 year ago

Yup, definitely just the SMTP settings. It looks like our styles are working fine too, which was a concern in https://github.com/bullet-train-co/bullet_train/issues/509

I'll try to work on a PR for the error message when BASE_URL hasn't been properly configured to the hostname.