我无法部署到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
我的pipfile
和pipfile
锁存储在我的pycharmprojects文件夹中。我的procfile
存储在我的项目应用程序文件夹中。
当我运行Pipenv Shell时,它会自动将我带到pycharmsproject
文件夹。