我只是想开始使用heroku来部署用Flask编写的应用程序。所以我要经历Getting Started with Python tutorial。所以我按照所有步骤设置和准备应用程序:
# Did a heroku login
MacBook-Air-van-kramer65:zommel kramer65$ heroku login
Enter your Heroku credentials.
Email: kramer65@mydomain.nl
Password (typing will be hidden):
Found existing public key: /Users/kramer65/.ssh/id_rsa.pub
Uploading SSH public key /Users/kramer65/.ssh/id_rsa.pub... done
Authentication successful.
# clone the repo from github
MacBook-Air-van-kramer65:zommel kramer65$ git clone https://github.com/heroku/python-getting-started.git
Cloning into 'python-getting-started'...
remote: Counting objects: 58, done.
remote: Total 58 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (58/58), done.
Checking connectivity... done.
MacBook-Air-van-kramer65:zommel kramer65$ cd python-getting-started/
# Create a heroku app
MacBook-Air-van-kramer65:python-getting-started kramer65$ heroku create --http-git
Creating morning-wave-9853... done, stack is cedar-14
WARNING: Incomplete credentials detected, git may not work with Heroku. Run `heroku login` to update your credentials. See documentation for details: https://devcenter.heroku.com/articles/http-git#authentication
# Because it says there are incomplete credentials detected I run 'heroku login' again.
MacBook-Air-van-kramer65:python-getting-started kramer65$ heroku login
Enter your Heroku credentials.
Email: kramer65@mydomain.nl
Password (typing will be hidden):
Authentication successful.
# And I push the repo
MacBook-Air-van-kramer65:python-getting-started kramer65$ 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.
我认为repo还不知道heroku,但它在教程中没有说明这一点,我不知道要设置什么作为远程repo将它推送到我的heroku实例。
有人知道我怎么能正确地把我的东西推到heroku吗?欢迎所有提示!