在github上,我在一個目錄的子目錄中有一個Rails應用程序,github.com/sadaf2605/directory/subdirectory/{rails app}
。當我試圖把這個程序的Heroku我得到一個錯誤:如何將Git子目錄推送到heroku?
! Heroku push rejected, no Cedar-supported app detected
To [email protected]:damp-woodland-7566.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:damp-woodland-7566.git'
閱讀「Heroku push rejected, no Cedar-supported app detected wordpress」之後,我才知道,這個子目錄是造成問題的原因。但是,我希望這個子目錄保留在github上,因爲它可以幫助我組織工作,但我不想更改route.rb。可能嗎?
可能最好的行動是讓rails應用它自己的git倉庫,然後將其作爲第一個倉庫的子模塊。 – quandrum