尽管.gitignore,我的节点模块已部署到Azure

时间:2018-01-11 07:41:22

标签: node.js git azure azure-web-sites gitignore

所以我将我的代码推送到Azure网站并准备好了这个.gitignore文件,但它仍然将我的所有node_modules文件夹内容推送到该网站:

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

不确定为什么会这样做。使用create-react-app启动此项目并使用我的本地git初始推送到Azure。

为什么会这样?

我可以简单地删除appservice中的所有内容并重新推送吗?如果是这样,我不需要删除或重置以确保这个新的推送正确吗?

非常感谢。

更新:

这是关于节点模块的文件结构:

enter image description here

0 个答案:

没有答案