2014-10-07 82 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。

回答