-
Notifications
You must be signed in to change notification settings - Fork 26
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
undefined method `to_sym' for nil:NilClass #102
Comments
Hey @jaredmoody thanks for giving Kuby a spin! You can get a backtrace by prefixing the command with |
Perfect, thanks! Here's the relevant line from the backtrace:
My production section of database.yml doesn't have an adapter because it uses a DATABASE_URL env variable, which wasn't present. However, when I added it, still has the same error - I would guess rails does some parsing of the protocol if the adapter isn't explicitly present? Anyway I added an explicit Now I'm a little bit at a loss as how to use Kuby when I don't want to manage my database with k8s though. Any tips here? At least, maybe improved error handling around the database adapter config would be a nice improvement :) |
Nice, thanks for the additional info! Yeah it sounds like there are some improvements to be made here, I'll look into it. Check out this area of the docs for instructions on how to manage the database yourself. Specifically you'll want to do this in your Kuby config: Kuby.define('my-app') do
environment(:production) do
kubernetes do
plugin :rails_app do
manage_database false
end
end
end
end |
Trying out the quickstart guide and hitting an error when trying to build:
I'm sure I've missed something, but I don't know how to get kuby to print a backtrace or otherwise find out what the issue is.
The text was updated successfully, but these errors were encountered: