我最近将基于Meteor的网站从1.3更新到1.8,同时添加了Let's Encrypt SSL。当我尝试在使用MUP部署后添加新用户时,用于添加用户的UI会折叠为三个选通栏,但从未完成。当我尝试在其他浏览器中运行该页面时,出现502错误网关错误。当我尝试尝试创建帐户的原始页面刷新时,此502错误消失了。
我根据提供的“交钥匙”帐户进行了构建。在我的家用计算机上进行本地测试时,效果很好。
这是所有安装软件包,包括删除不安全的和之后的默认安装软件包:
meteor-base@1.4.0 # Packages every Meteor app needs to have
mobile-experience@1.0.5 # Packages for a great mobile UX
mongo@1.6.2 # The database Meteor supports right now
blaze-html-templates@1.0.4 # Compile .html files into Meteor Blaze views
reactive-var@1.0.11 # Reactive variable for tracker
tracker@1.2.0 # Meteor's client-side reactive programming library
standard-minifier-css@1.5.3 # CSS minifier run for production mode
standard-minifier-js@2.4.1 # JS minifier run for production mode
es5-shim@4.8.0 # ECMAScript 5 compatibility for older browsers
ecmascript@0.12.4 # Enable ECMAScript2015+ syntax in app code
shell-server@0.4.0 # Server-side component of the `meteor shell` command
alexwine:bootstrap-4
oauth
iron:router
accounts-ui
accounts-password
accounts-facebook
accounts-google
session
underscore
facebook-config-ui
google-config-ui
这是正在运行的股票帐户,没有特殊代码。我已经在面向JavaScript文件的客户端中为用户名和电子邮件设置了登录名:
Accounts.ui.config({
passwordSignupFields: "USERNAME_AND_EMAIL"
});
真正令人沮丧的是,当我在本地计算机上运行以进行测试,根据需要添加和更新用户时,我的网站可以正常运行,但是由于某种原因而陷入停滞状态。
我很失落,我什至不知道是什么原因导致它如此严重地挂起。任何帮助将不胜感激!
编辑:添加package.json
{
"name": "DMachineWordBank",
"private": true,
"scripts": {
"start": "meteor run",
"test": "meteor test --once --driver-package meteortesting:mocha",
"test-app": "TEST_WATCH=1 meteor test --full-app --driver-package meteortesting:mocha",
"visualize": "meteor --production --extra-packages bundle-visualizer"
},
"dependencies": {
"@babel/runtime": "^7.3.4",
"bcrypt": "^3.0.6",
"meteor-node-stubs": "^0.4.1",
"popper.js": "^1.15.0"
},
"meteor": {
"mainModule": {
"client": "client/main.js",
"server": "server/main.js"
},
"testModule": "tests/main.js"
}
}
答案 0 :(得分:0)
如果您删除了bcrpt并忽略了以下消息,它是否可以解决生产问题?
Note: you are using a pure-JavaScript implementation of bcrypt.
While this implementation will work correctly, it is known to be
(STDERR) approximately three times slower than the native implementation.
In order to use the native implementation instead, run
meteor npm install --save bcrypt
in the root directory of your application.