基于存储库错误推送到heroku时发生致命错误

时间:2020-07-25 10:42:10

标签: heroku

我无法部署到heroku。我收到以下错误:

(PycharmProjects) Pauls-MacBook-Pro-3:site1 paulthomas$ git push heroku master
fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我不知道问题出在哪里,我正在执行的步骤如下:

$heroku login

然后填写我的登录详细信息

$pipenv lock

然后

$touch Procfile

然后打开我的Procfile并进行以下操作:

web: gunicorn site1.wsgi --log-file-

然后我要安装gunicorn

 $pipenv install gunicorn

然后将allowed hosts设置为“ *”

然后推送到git:

$ git add -A
$ git commit -m "deployment" 
$git push -u origin master

然后创建heroku:

$ heroku create
$ heroku config: set Disable_collectstatic=1

然后推送到heroku:

$ git push heroku master

我的pipfilepipfile锁存储在我的pycharmprojects文件夹中。我的procfile存储在我的项目应用程序文件夹中。 当我运行Pipenv Shell时,它会自动将我带到pycharmsproject文件夹。

0 个答案:

没有答案