本地利用heroku ci创建heroku应用

本地创建heroku应用过程

注册heroku网址

下载heroku软件

本地执行命令建立app并推送到git

  • 命令行如下,等待总结
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
登录
heroku操作

E:\PycharmProjects\herotest>heroku login
heroku: Press any key to open up the browser to login or q to exit:
Opening browser to https://cli-auth.heroku.com/auth/browser/9c97ded1-*
heroku: Waiting for login... !
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at HTTP._parse (e:/Program Files/heroku/client/node_modules/http-call/lib/http.js:342:30)

E:\PycharmProjects\herotest>heroku login
heroku: Press any key to open up the browser to login or q to exit:
Opening browser to https://cli-auth.heroku.com/auth/browser/6ac21c80-*
Logging in... done
Logged in as ***@gmail.com



Install the Heroku CLI
Download and install the Heroku CLI.

If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key.

$ heroku login
Clone the repository
Use Git to clone gapp's source code to your local machine.

$ heroku git:clone -a gapp
$ cd gapp
Deploy your changes
Make some changes to the code you just cloned and deploy them to Heroku using Git.

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