使用NGINX服务器从Amazon Linux AMI 2013.09.2实例部署Meteor应用程序接收模块错误

dgo*_*092 5 nginx heroku amazon-ec2 node-modules

我正在尝试通过Heroku将我的第一个Web应用程序(来自MeteorJS框架的Telescope版本)部署到Amazon Linux AMI 2013.09.2实例的自定义子域.我跟随本教程 - http://satishgandham.com/2013/12/a-complete-guide-to-install-production-ready-telescope-on-your-own-server/ - 但是一旦我尝试使用Telescope运行PORT=3000 MONGO_URL=mongodb://localhost:3000/Telescope ROOT_URL=http://ec2-54-193-42-229.us-west-1.compute.amazonaws.com node client/main.js,我收到以下错误信息:Error: Cannot find module '/home/ec2-user/bundle/programs/server/node_modules/fibers/client/main.js'

我试图解决这个问题的方法是cp || mvmain.js最初位于~/Telescope/client目录中的文件上执行/home/ec2-user/bundle/programs/server,甚至是'/ home/ec2- user/bundle/programs/server/node_modules/fibers但我似乎无法main.js/client目录中分离出来.我不确定这是否是问题,或者是否存在其他潜在问题,但我想找到一个解决方法,此时使用代理服务器.我认为将main.js文件移出/client目录是足够的,但显然不是.我不确定我的目的是继续尝试使用代理是否必要,但如果有修复,我不介意了解它.

或者,如果任何人可以指导我 - https://github.com/aldeed/deploymeteor/ - 可能是使用NGINX服务器代理的潜在解决方案,我们将非常感谢您的帮助.

错误

Sat*_*ham 0

您收到错误是因为您没有从主文件夹运行命令。

您位于bundle/programs/server/node_modules/fibres。

使用 client/main.js 的绝对路径,或 cd 到 ~

MONGO_URL=mongodb://localhost:3000/Telescope ROOT_URL=http://ec2-54-193-42-229.us-west-1.compute.amazonaws.com node client/main.js
Run Code Online (Sandbox Code Playgroud)

PS:如果您在帖子本身而不是在这里提出问题,这会对其他人有帮助