-
Notifications
You must be signed in to change notification settings - Fork 455
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
kamal app exec -i "bin/rails dbconsole"
requires some password
#684
Comments
@dorianmariecom Is your database an accessory? What's the accessory config for this in your deploy.yml? |
Here is my accessory config:
|
@dorianmariecom It's prompting for the value you have set for |
When I enter my database password I get: Doing |
When I do |
I'm not sure there's much we can do to debug this issue here, unless you have some extra information that points to this being a Kamal issue. You could open a bash shell with |
The environment variables are there with bash but still it asks me for a password even though it's in the DATABASE_URL
|
You might need rails dbconsole -h
Usage:
bin/rails dbconsole
Options:
-e, [--environment=ENVIRONMENT] # The environment to run `dbconsole` in (e.g. test / development / production).
-p, [--include-password], [--no-include-password] # Automatically provide the password from database.yml
[--mode=MODE] # Automatically put the sqlite3 database in the specified mode
# Possible values: html, list, line, column
[--header], [--no-header]
--db, [--database=DATABASE] # Specify the database to use.
Start a console for the database specified in config/database.yml |
yeah that works, had no idea about the -p option, probably should be the default |
I tried
kamal app exec -i "bin/rails dbconsole"
but it requires some kind of authentication:And when I enter my database password I get:
The text was updated successfully, but these errors were encountered: