简体   繁体   English

meteor.js应用正常在本地主机上运行,​​但不在服务器上运行

[英]meteor.js app running normaly on localhost but not on server

I have this app that seems to run normally on localhost but when I deployed it to meteor or digital ocean, then from sudden reason, no functionalities work... 我有一个似乎可以在本地主机上正常运行的应用程序,但是当我将其部署到流星或数字海洋时,由于突然的原因,没有任何功能起作用...

Here is the screencast localy: http://screencast.com/t/tyD995EyM 这是截屏视频的语言环境: http ://screencast.com/t/tyD995EyM

Here is the current hosted version on meteor: cryptonic.meteor.com 这是流星上的当前托管版本:cryptonic.meteor.com

And digital ocean: 104.236.90.81 和数字海洋:104.236.90.81

Code repo on git if it helps... https://github.com/lklancir/cryptonic git上的代码回购是否有帮助... https://github.com/lklancir/cryptonic

Could anyone at least help me locate the problem or point in direction, no major console log errors... 至少有人可以帮助我定位问题或指明方向,没有重大的控制台日志错误...

I might be guessing that maybe some JS files are killing each other when composed in one single .js file on upload, but why does it work locally is the thing that bothers me 我可能会猜想,当某些JS文件在上传时合并为一个.js文件时,它们会互相杀死,但是为什么它在本地运行却是困扰我的事情

I do see this error in the console on the meteor.com site... 我确实在meteor.com网站上的控制台中看到此错误...

Uncaught ReferenceError: gnMenu is not defined

I'm not completely sure, but I think it might be a file loading order. 我不确定,但我认为这可能是文件加载顺序。 You have client/lib/custom.js which uses gnMenu from client/lib/gnmenu.js 您有使用client / lib / gnmenu.js中的gnMenu的client / lib / custom.js

Since all files in lib are loaded first, there might be a load order issue. 由于lib中的所有文件都首先加载,因此可能存在加载顺序问题。 Per the http://docs.meteor.com/#/full/structuringyourapp page, the files should be loaded from lib in alphabetical order so this would be an issue as custom.js would be loaded first, but I do not know why it would work on local... http://docs.meteor.com/#/full/structuringyourapp页面中,应按字母顺序从lib加载文件,因此这将是一个问题,因为custom.js将首先加载,但我不知道为什么它可以在本地...

HTML template files are always loaded before everything else
Files beginning with main. are loaded last
Files inside any lib/ directory are loaded next
Files with deeper paths are loaded next
Files are then loaded in alphabetical order of the entire path

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM