将 angularjs 应用程序从 Windows 移动到 Ubuntu

Move angularjs app to Ubuntu from Windows

我在 windows 上使用 nodejs、http-server、gulp 和括号开发了一个 angular 应用程序。在 windows 我有一个根目录 (lms) 包含:

/src
/src/templates
/src/js
/src/img
/src/index.html
/node_modules
package.json

在 Ubuntu 中,我有一个名为 /home/lms 的目录。我已经安装了 nodejs、angularjs 和 http-server,但没有安装 gulp 或 bower,因为我不会在 Ubuntu 中进行开发。我在 home/lms:

中看到
/Public
/Templates
/Pictures
/node_modules

如何部署我的文件?我假设我将 package.json 放在 home/lms 中,但我无法将 Windows node_modules 复制到 Ubuntu node_modules 那么 node_modules 为 Ubuntu 创建?

此外,我是将我的应用程序目录 /src 放入 Ubuntu 上的 /home/lms/Public 目录中,还是仅将其添加到 /home/lms 中?

如果应用程序做得很明智,它应该在 gulp 中部署任务来捆绑所有内容。你不应该在服务器端有 node_modules 但如果你真的想这样做你必须 运行 npm install 在 package.json 所在的文件夹中。