0

我发现在heroku上管理生产和登台环境确实是一个痛苦的过程,尤其是域、git等。

1)我创建了名为 htest 的应用程序。

2)在 htest 目录中,我执行了以下操作:

heroku create --app htest-staging --remote staging
heroku create --app htest-production --remote production

heroku domains:add staging.mydomain.com --app htest-staging --remote staging
heroku domains:add production.mydomain.com --app htest-production --remote production

3)我提交了应用程序并启动了服务

git push staging master
heroku ps --app htest-staging --remote staging

3)我使用 htest-staging.herokuapp.com 的 cname 将域添加到 route53

heroku info --app htest-staging
=== htest-staging
Web URL:       http://htest-staging.herokuapp.com/

正如预期的那样,我找不到网页。

更令人不安的是,当我访问http://htest-staging.herokuapp.com/时,我在页面上看到了这个:

Heroku | Welcome to your new app!
Refer to the documentation if you need help deploying.

我的 python 应用程序应该说你好世界。

所以..我该如何解决?

4

0 回答 0