-
Notifications
You must be signed in to change notification settings - Fork 177
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
db:pull without providing ENV password and username? #74
Comments
@karlingen Can you try pull database with this PR: #70 ? Is it helpful? |
@numbata Thanks for your reply. But unfortunately, it didn't work. It just waits for password input:
|
@karlingen hmm. That's strange, because in PR #70 capistrano-db-tasks execute rails on remote server with all remote ENV variables to get remote database configuration (this line). Can i ask you to debug my PR and make sure, that |
@numbata It was my bad! I forgot to prefix it with
I am running postgresql on both local and production server. |
@karlingen my fault - forgot to stringify keys of database config. fixed |
Next error:
|
@numbata anything new here? |
@karlingen - This may be a moonshot, but does you database password happen to contain a single quote in it? I use randomly generated pws for everything and this just occurred for me. If this is the case the single quote ends the input of your pw (which is passed as a single quoted string) in the script line early causing weird errors. I have to imagine this is a rare scenario, but figured it was worth pointing out as I had to dig for quite a while to notice it. |
Nice guess, but (un)fortunately we don't have any special characters in our |
@karlingen is it actual for you? I make a lot of changes in PR #70. Can you check them? |
@karlingen PR #70 merged. Please, reopen this issue if you still have error. |
In database.yml on my production server I define my database keys like this:
And when pulling the database to my local environment I need to do this:
Is there a way of letting
capistrano-db-tasks
to automatically pull the information from the.rbenv-vars
located in the shared folder on the production folder? That is where I enter database credentials and environment variables since I'm using rbenv-vars.It would be nice to be able to only run
cap production db:pull
The text was updated successfully, but these errors were encountered: