您好,我正在关注 this tutorial来自 AngularJS 文档。
我正在尝试使用这种方法来学习它。
You will need an http server running on your system. Mac and Linux machines typically have Apache pre-installed, but If you don't already have one installed, you can use node to run scripts/web-server.js, a simple bundled http server.
我的服务器已启动,但在 localhost:8000(它运行的端口)上发生的唯一事情是文件被列出。
如何使用 Node.js 进行部署?
当我在浏览器中导航到 localhost:8000 时,这是我的服务器日志。
112-108-15:scripts phe$ ./web-server.js
Http Server running at http://localhost:8000/
GET / Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.65 Safari/537.36
GET / Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.65 Safari/537.36
最佳答案
关于node.js - 在 Node.js 中部署 angularjs 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18746834/