这里什么也没有。 Heroku的

问题描述 投票:0回答:2

我刚刚在heroku firstsiteapp上创建了一个新的应用程序。我按照heroku创建的说明创建了一个新的repo。

$ cd my-project/
$ git init
$ heroku git:remote -a firstsiteapp

部署了我的应用程序

$ git add .
$ git commit -am "make it better"
$ git push heroku master

但是当我导航到网站firstsiteapp.heroku.com时,我仍然得到标题没有这样的应用程序的默认html页面。

php git heroku
2个回答
0
投票

您需要在服务器中执行命令“git pull”,意味着检索您更新的文件 - “git push”。


0
投票

需要配置推送时自动部署。导航到https://dashboard.heroku.com/apps/<YOUR_APP_NAME>/deploy并为主分支启用自动部署。您也可以手动部署 - 对第一次部署很有用。

您还需要检查构建成功的位置:构建失败的应用程序不会部署。可以在活动选项卡中检查构建状态:https://dashboard.heroku.com/apps/<YOUR_APP_NAME>/activity

© www.soinside.com 2019 - 2024. All rights reserved.