Replies: 4 comments 1 reply
-
Do you need |
Beta Was this translation helpful? Give feedback.
-
You could create a local .env-dev or similar and use that one for the foreman. |
Beta Was this translation helpful? Give feedback.
-
Here to cross reference rails/rails#51829. There really seem to be some problems related to Kamal/Foreman/DotEnv confusions. |
Beta Was this translation helpful? Give feedback.
-
This will be handled in #900 |
Beta Was this translation helpful? Give feedback.
-
Hey y'all!
So I'm running a pretty barebones Rails 7.0.6 project, generated with
rails new --skip-action-mailer --skip-action-mailbox --skip-action-text --skip-active-storage --no-skip-hotwire --css=tailwind --database=postgresql --skip-test --main
It also generated a
Procfile.dev
for me. Rails docs say that I should be usingbin/dev
to run dev server in this case.However, when I tried running dev server, I got a pretty weird error:
Yet,
bin/rails s
works fineSpent some time debugging and realized that it's trying to connect to my
DATABASE_URI
from my.env
– Foreman seems to load it automatically.Now I'm confused – I'm running vanilla Rails and pretty simple config of MRSK. Yet, those offer incompatible solutions
What's the best way to bring back
bin/dev
, then?Basically, all the context:
.env
file is for MRSK – I don't use dotenvBeta Was this translation helpful? Give feedback.
All reactions