Tôi đang sử dụng Ubuntu 10.04. Bằng cách làm theo tutorial here, tôi đã tạo tài khoản Heroku, đã cài đặt thành công GIT và Heroku. Tôi đã tải lên khóa SSH và thêm heroku vào hệ thống PATH của tôi.Newbie in Heroku: Lỗi khi đẩy ứng dụng của tôi vào Heroku
Sau đó, tôi đã làm những điều sau đây:
---------- FIRST (thành công) -------------
$ cd PATH/TO/MY_APP
$ git init
Initialized empty Git repository in .git/
$ touch HELLO
$ git add .
$ git commit -m "Add a HELLO file"
------------ THEN (thành công) ----------
$ heroku create
Enter your Heroku credentials.
Email: [email protected]
Password:
Uploading ssh public key /Users/joe/.ssh/id_rsa.pub
Created http://high-sunrise-58.heroku.com/ | [email protected]:high-sunrise-58.git
Git remote heroku added
----------- LAST (Không thành công !!!) ----------
$ git push heroku master
Warning: Permanently added the RSA host key for IP address 'xx.xx.xx.xx' to the list of known hosts.
Counting objects: 3, done.
Writing objects: 100% (3/3), 226 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
f
-----> Heroku receiving push
! Heroku push rejected due to an unrecognized error.
! We've been notified, see http://support.heroku.com if the problem persists.
To [email protected]:high-sunrise-58.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:high-sunrise-58.git'
Như bạn thấy ở trên, bước cuối cùng của tôi thất bại.
Lý do có thể xảy ra cho lỗi trong bước LAST (khi đẩy ứng dụng của tôi vào Heroku) là gì? Tại sao không thành công?
bạn không làm gì sai - tôi sẽ liên lạc với sự hỗ trợ của Heroku. Một điều mặc dù, đây là một ứng dụng Rails phải không? –
Có, nó sẽ là một ứng dụng Rails. Nhưng hiện tại tôi vừa tạo một tệp văn bản thuần túy để đẩy tới heroku để kiểm tra mục đích. – Mellon