简体   繁体   English

Heroku web.1 没有更新环境变量

[英]Heroku web.1 didn't updated env variable

After heroku changed my database connection (db, user, host, password) I have set the new setting on my heroku configs var but when I run the application it stills try to connect to the database with the old credentials, I have checked with heroku cofig with heroku config -a app_name and this shows the new password but when I send a request to my server it says:在 heroku 更改我的数据库连接(数据库、用户、主机、密码)后,我已经在我的 heroku configs var 上设置了新设置但是当我运行该应用程序时它仍然尝试使用旧凭据连接到数据库,我已经与 heroku 检查过cofig 与 heroku config -a app_name 并且这显示了新密码但是当我向我的服务器发送请求时它说:

error: password authentication failed for user "qzmxbgddsnhdbw"错误:用户“qzmxbgddsnhdbw”的密码验证失败

and user "qzmxbgddsnhdbw" is the old one, the new is different, running heroku config -a myappname shows:和用户“qzmxbgddsnhdbw”是旧的,新的是不同的,运行 heroku config -a myappname 显示:

DB_USER: fspdcwvfirvilu DB_USER:fspdcwvfirvilu

what i have tried:我试过的:

  • restarted app with heroku restart使用 heroku restart 重新启动应用程序
  • killed web.1 process with heroku ps:kill web.1使用 heroku ps:kill web.1 杀死 web.1 进程
  • manual deploy手动部署

I found out what was going on, the adonis migrate command sometimes doesn't finish if there's an active connection to your database it's up to us finish the migration command, that's why the deploy got stuck it was infinitely waiting for the migration command to finish and it never finishes, it was my last command on my profile, after removing the migrate command it worked fine and everything got updated as expected我发现发生了什么事,adonis migrate 命令有时不会完成,如果有一个活动的连接到您的数据库,这取决于我们完成迁移命令,这就是部署卡住的原因它无限等待迁移命令完成它永远不会完成,这是我个人资料上的最后一个命令,删除迁移命令后它工作正常并且一切都按预期更新

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM