good20087758521 / apjp

Automatically exported from code.google.com/p/apjp
0 stars 0 forks source link

操作有误,导致将APJP部署到Heroku出现问题 #108

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
刚才我进入heroku,把之前的APP删除了。准备重新上传,结果��
�样了:::
=========================================
Microsoft Windows [版本 6.1.7600]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

Z:\Users\*********>heroku login
Enter your Heroku credentials.
Email: *********@Live.com
Password (typing will be hidden):
Authentication successful.

Z:\Users\*********>cd 
E:\常用工具\翻墙w\APJP\APJP-Heroku\APJP_REMOTE_JAVA_HEROKU
-1.0.0

Z:\Users\*********>e:

E:\常用工具\翻墙w\APJP\APJP-Heroku\APJP_REMOTE_JAVA_HEROKU-1.0.0>heroku 
login
Enter your Heroku credentials.
Email: *********@live.com
Password (typing will be hidden):
Authentication successful.

E:\常用工具\翻墙w\APJP\APJP-Heroku\APJP_REMOTE_JAVA_HEROKU-1.0.0>git init
Reinitialized existing Git repository in 
E:/���ù���/��ǽw/APJP/APJP-Heroku/APJP_R
EMOTE_JAVA_HEROKU-1.0.0/.git/
warning: Your console font probably doesn't support Unicode. If you experience s
trange characters in the output, consider switching to a TrueType font such as L
ucida Console!

E:\常用工具\翻墙w\APJP\APJP-Heroku\APJP_REMOTE_JAVA_HEROKU-1.0.0>git add .

E:\常用工具\翻墙w\APJP\APJP-Heroku\APJP_REMOTE_JAVA_HEROKU-1.0.0>git 
commit -m "
init"
[master 5db67f9] init
 Committer: unknown <*********@*********-PC.(none)>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 files changed, 1 insertions(+), 1 deletions(-)

E:\常用工具\翻墙w\APJP\APJP-Heroku\APJP_REMOTE_JAVA_HEROKU-1.0.0>heroku 
create -
-stack cedar
Creating shielded-bastion-4872... done, stack is cedar
http://shielded-bastion-4872.herokuapp.com/ | git@heroku.com:shielded-bastion-48
72.git

E:\常用工具\翻墙w\APJP\APJP-Heroku\APJP_REMOTE_JAVA_HEROKU-1.0.0>git push 
heroku
 master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

E:\常用工具\翻墙w\APJP\APJP-Heroku\APJP_REMOTE_JAVA_HEROKU-1.0.0>git push 
heroku
 master
Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the
 list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

E:\常用工具\翻墙w\APJP\APJP-Heroku\APJP_REMOTE_JAVA_HEROKU-1.0.0>heroku 
open
 !    App not found

E:\常用工具\翻墙w\APJP\APJP-Heroku\APJP_REMOTE_JAVA_HEROKU-1.0.0>
===================================================================

输入heroku 
open之后不能打开IE了。。。。。得不到网址了吧。。。。咋��
�呢?

Original issue reported on code.google.com by ooxx.1...@gmail.com on 6 Nov 2012 at 4:21

GoogleCodeExporter commented 9 years ago
Issue 107 has been merged into this issue.

Original comment by goknmuse on 6 Nov 2012 at 4:35

GoogleCodeExporter commented 9 years ago
1. 问题: "The authenticity of host 'heroku.com (50.19.85.132)' can't be 
established.
RSA key fingerprint is 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad.
Are you sure you want to continue connecting (yes/no)?
Host key verification failed.
fatal: The remote end hung up unexpectedly"
   解答: a. 有可能是等待时间过长,自己断开的。也有可能是防火墙(本地)拦截或安全类的软件阻止将Heroku的Host写入known_hosts文件。可能性极小。
         b. "Are you sure you want to continue connecting (yes/no)?" 好像没有输入"yes"(没引号)的?
         c. "Microsoft Windows [版本 6.1.7600]",应该是Windows 7吧? 检查下C:\Users\user\.ssh\known_hosts (文本文件)文件中是否包含一条以"heroku.com,"开头,接着是其IP地址(50.19.85.132),最后是一串publickey。若没有,则验证b. 再遇到"Are you sure you want to continue connecting (yes/no)?",输入"yes"。

2. 问题: "Permission denied (publickey).
fatal: The remote end hung up unexpectedly"

   解答: a. 确定已上传好你的SSH public key。检查下: 执行"heroku keys",正常会显示"=== <YourEmail> Keys",接着就是你的SSH public key。
         b. a.过程中确认没有上传好SSH public key,执行"heroku keys:add",若已经有SSH key,会默认上传C:\Users\user\.ssh 路径下的SSH public key。若没有SSH key,则先执行"ssh-keygen -t rsa" 生成一个。

3. 警告: "Reinitialized existing Git repository in 
E:/���ù���/��ǽw/APJP/APJP-Heroku/APJP_R
EMOTE_JAVA_HEROKU-1.0.0/.git/
warning: Your console font probably doesn't support Unicode. If you experience s
trange characters in the output, consider switching to a TrueType font such as L
ucida Console!"
   解答: a. 翻译"你的控制台前端或许不支持 Unicode. 如果在输出中,你看到奇怪的字符,考虑换到一个TrueType 前端,如Lucida Console!",实际上没什么意思。
         b. 我的解释: Git的repo路径,尽量使用英文。这样就不会出现"E:/���ù���/��ǽw/" 乱码的。如: "E:/tools/" 等。

4. "Heroku账号只能上传一次APP吗?" 
   答: free for the first dyno ( https://devcenter.heroku.com/articles/dynos )

5. 还有问题请参考 SampleHeroku (Updated Mar 10, 
2012,可能有点过时,但现在没时间更新。)

Original comment by goknmuse on 6 Nov 2012 at 11:36

GoogleCodeExporter commented 9 years ago
( ⊙o⊙ )射射大神的回答,问题因此得到解决w。

Original comment by ooxx.1...@gmail.com on 8 Nov 2012 at 1:42

GoogleCodeExporter commented 9 years ago
>"( ⊙o⊙ )射射大神的回答,问题因此得到解决w。"

我伤心了。

Solved.

Original comment by goknmuse on 8 Nov 2012 at 2:00

GoogleCodeExporter commented 9 years ago
"4. 'Heroku账号只能上传一次APP吗?'
   答: free for the first dyno ( https://devcenter.heroku.com/articles/dynos )"

不是。至少我测试部署两个App,没有问题的。但其限定的free 
account with 512MB of memory usage of Dynos (Dynos 
是Heroku定义的一个词汇,相当于一个虚拟的盒子,用来跑App��
�)。另外还有其他限制,The maximum slug size is 
200MB,一个APJP_REMOTE大约需要"Slug Size:     
41M",而一般要想App较为正常的跑起来,Slug 
Size要远小于200MB才好的 ( 自行参考Heroku的官方文档 
https://devcenter.heroku.com/articles/slug-compiler 
)。So,1-2两个Apps,就好。

Done.

Original comment by goknmuse on 18 Nov 2012 at 12:07

GoogleCodeExporter commented 9 years ago
Issue 124 has been merged into this issue.

Original comment by goknmuse on 27 Nov 2012 at 1:36