2014-10-07 62 views
11

我在嘗試部署一個節點應用程序,但是我的代碼是如何運行的。在頂層應用程序是混帳inited,它看起來像:Heroku部署一個子目錄?

App (git tracked in remote repo) 
- .git 
- server 
- client 
- plugin 
- extras 

由於Heroku的需要我只有服務器目錄中直接用的package.json構建文件推,我不知道如何設置我的目錄。我想它,這樣我可以從「應用/服務器」文件夾部署Heroku的,但我現在做的還是混帳推/拉整個應用程序:

App (git tracked in remote repo) 
- .git 
- server (can run 'git push heroku master' for just this folder) 
    - .git (?) 
- client 
- plugin 
- extras 

我怎樣才能做到這一點最簡單?我閱讀了git-submodules,但看起來很混亂,我想確定一下。非常感謝你從git nub。

回答