【发布时间】:2020-01-06 17:06:16
【问题描述】:
这是我第一次接触 Heroku(真的很棒)。 我按照这些步骤将我的第一个应用程序部署到 heroku。
git init
git add .
git commit -m 'first commit'
heroku create abcfirstapp
git remote add origin git@heroku.com:abcfirstapp.git
git push heroku master
我得到了像
这样的错误Heroku 推送被拒绝,未检测到 Cedar 支持的应用 到 git@heroku.com:abcfirstapp.git [remote.rejected] master -> master (pre-receive hook denied) 错误:未能将一些引用推送到 'git@heroku.com:abcfirstapp.git'
我很确定我的 php 文件可能是编写的,因为它在我的本地 xampp 服务器上运行良好
<?PHP phpinfo(); ?>
另一个问题是:当我尝试从 heroku 中提取时使用
git pull heroku master
我遇到了一个错误
致命:找不到远程参考主机
谁能帮帮我?
谢谢
【问题讨论】: