kai*_*aid 14 git heroku node.js
我正在尝试部署节点应用程序,但我遇到了代码结构问题.该应用程序是顶层的git,它看起来像:
App (git tracked in remote repo)
- .git
- server
- client
- plugin
- extras
Run Code Online (Sandbox Code Playgroud)
由于Heroku需要我直接使用package.json构建文件来推送服务器目录,所以我不确定如何设置我的目录.我想要它,以便我可以从'App/server'文件夹部署heroku,但仍然像我现在一样git拉/推整个应用程序:
App (git tracked in remote repo)
- .git
- server (can run 'git push heroku master' for just this folder)
- .git (?)
- client
- plugin
- extras
Run Code Online (Sandbox Code Playgroud)
我怎么能做到这一点最简单?我读到了git-submodules,但这看起来很混乱,我想确定一下.非常感谢git nub.