2013-03-27 50 views
2

我有问题在Heroku上部署Django应用程序。 git推后,家里什么也没有。我不认为问题是git,因为我可以推送到github上的存储库。在Heroku上没有家中的文件

(23:43:01 (venv)[email protected] ~/path $ git push heroku 4heroku 
Everything up-to-date 
(23:43:31 (venv)[email protected] ~/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)[email protected] ~/path $ heroku logs 
...... 
2013-03-26T23:34:04+00:00 heroku[api]: Starting process with command `bash` by [email protected] 
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 protected] 
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 

回答

2

如果你想部署一个不是master分支的分支,你应该做一个不同的推送。据Heroku documentation

分行被推到Heroku的比其他高手将在此 命令被忽略。如果您在本地使用另一个分支,则可以在推送前将 合并到主设备,或者指定您想要将本地分支推送到远程主设备。要推 以外的分支,请使用以下语法:

$ git push heroku yourbranch:master