-
Notifications
You must be signed in to change notification settings - Fork 270
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
Problem with Postgresql db:migrate when deploy #230
Comments
you got any solution for this? |
Issues like this where you encounter different behavior in capistrano vs running the same command manually on the server are often due to different environment variables being loaded in those two scenarios. Here is some more background: https://capistranorb.com/documentation/faq/why-does-something-work-in-my-ssh-session-but-not-in-capistrano/ My general suggestion is to manually run task :print_env do
on release_roles(:all) do
puts capture("env")
end
end |
thanks for reply |
Sorry, I don't have any more ideas. Let us know what you find. |
please check here there are few lines added |
Thanks @jose2007kj for me issue was there was commented database connection on top after removing that commented connect it worked for me. |
Just would like to share my story. I found out the hard way that dotenv files are unable to parse the Also this might be helpful if you want to continue deployment without migration (https://stackoverflow.com/a/28300857). Though the app still wouldn't work without a working (database) password. |
RAILS_ENV=production rake db:migrate
is worklingalso tried
peer
The text was updated successfully, but these errors were encountered: