我在Heroku上部署Django应用程序时遇到问题。在git推后,家里什么也没有。我不认为问题是git,因为我可以在github上推送到存储库。
(23:43:01 (venv)user@host ~/path $ git push heroku 4heroku
Everything up-to-date
(23:43:31 (venv)user@host ~/path $ heroku run bash
Running `bash` attached to terminal... up, run.3486
~ $ ls
~ $ ls -la
total 8
drwx------ 2 u12545 12545 4096 Mar 26 23:44 .
drwxr-xr-x 15 root root 4096 Oct 31 2011 ..
~ $ exit
(23:44:16 (venv)user@host ~/path $ heroku logs
......
2013-03-26T23:34:04+00:00 heroku[api]: Starting process with command `bash` by email@yahoo.co.uk
2013-03-26T23:34:05+00:00 heroku[run.8328]: Awaiting client
2013-03-26T23:34:05+00:00 heroku[run.8328]: Starting process with command `bash`
2013-03-26T23:34:06+00:00 heroku[run.8328]: State changed from starting to up
2013-03-26T23:34:39+00:00 heroku[run.8328]: Client connection closed. Sending SIGHUP to all processes
2013-03-26T23:34:40+00:00 heroku[run.8328]: State changed from up to complete
2013-03-26T23:34:40+00:00 heroku[run.8328]: Process exited with status 0
2013-03-26T23:44:00+00:00 heroku[api]: Starting process with command `bash` by email@yahoo.co.uk
2013-03-26T23:44:02+00:00 heroku[run.3486]: Starting process with command `bash`
2013-03-26T23:44:02+00:00 heroku[run.3486]: Awaiting client
2013-03-26T23:44:02+00:00 heroku[run.3486]: State changed from starting to up
2013-03-26T23:44:16+00:00 heroku[run.3486]: Process exited with status 0
答案 0 :(得分:2)
如果要部署不是master
分支的分支,则应该执行不同的推送。根据{{3}}:
除了主人之外被推到Heroku的分支将被忽略 命令。如果你在本地工作,你可以 要么在推送之前合并到主人,要么指定你想要的 将本地分支推送到远程主服务器。推动除了以外的分支 master,使用以下语法:
$ git push heroku yourbranch:master