我正在尝试通过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 || mv
在main.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服务器代理的潜在解决方案,我们将非常感谢您的帮助.