Mongodb 使用mupx将Meteor部署配置到Google计算引擎VM
虽然我已经尝试了一些解决相关问题的方法,但在Google Compute Engine上将Meteor项目部署到VM时,似乎没有任何方法可以解决我的问题 我已设置为处理部署,并且在运行时没有任何明显的问题Mongodb 使用mupx将Meteor部署配置到Google计算引擎VM,mongodb,meteor,ssh,google-compute-engine,Mongodb,Meteor,Ssh,Google Compute Engine,虽然我已经尝试了一些解决相关问题的方法,但在Google Compute Engine上将Meteor项目部署到VM时,似乎没有任何方法可以解决我的问题 我已设置为处理部署,并且在运行时没有任何明显的问题 sudo mupx deploy 我的mup.json如下 { // Server authentication info "servers": [ { "host": "104.199.141.232", "username": "simonlayf
sudo mupx deploy
我的mup.json
如下
{
// Server authentication info
"servers": [
{
"host": "104.199.141.232",
"username": "simonlayfield",
"password": "xxxxxxxx"
// or pem file (ssh based authentication)
// "pem": "~/.ssh/id_rsa"
}
],
// Install MongoDB in the server, does not destroy local MongoDB on future setup
"setupMongo": true,
// WARNING: Node.js is required! Only skip if you already have Node.js installed on server.
"setupNode": true,
// WARNING: If nodeVersion omitted will setup 0.10.36 by default. Do not use v, only version number.
"nodeVersion": "0.10.36",
// Install PhantomJS in the server
"setupPhantom": true,
// Show a progress bar during the upload of the bundle to the server.
// Might cause an error in some rare cases if set to true, for instance in Shippable CI
"enableUploadProgressBar": true,
// Application name (No spaces)
"appName": "simonlayfield",
// Location of app (local directory)
"app": ".",
// Configure environment
"env": {
"ROOT_URL": "http://simonlayfield.com"
},
// Meteor Up checks if the app comes online just after the deployment
// before mup checks that, it will wait for no. of seconds configured below
"deployCheckWaitTime": 30
}
当在浏览器中导航到我的外部IP时,我可以看到Meteor站点模板,但是Mongodb数据没有显示出来
我在虚拟机上设置了防火墙规则,允许通过端口27017进行通信
Name: mongodb
Description: Allow port 27017 access to http-server
Network: default
Source filter: Allow from any source (0.0.0.0/0)
Allowed protocols and ports: tcp:27017
Target tags: http-server
我也尝试过传递env变量MONGO_URL
,但在Meteor论坛上我发现了几次失败的尝试,表明在使用本地Mongodb数据库时不需要它
我目前正在使用ssh而不是gcloud SDK连接到VM,但如果它有助于解决方案,我很乐意设置它
如果有人能为我提供一些指导,让我知道到底出了什么问题,我将不胜感激。我设置的防火墙规则是否足够?在专门使用Google计算引擎VM时,是否需要考虑其他因素?有没有一种方法可以让我通过ssh检查服务器上的日志,从而更清楚地了解连接/防火墙/配置问题
我在这方面的知识是有限的,所以如果有一个简单的解决办法,我很抱歉
提前感谢。最近有一些流星更新,请重新运行部署 另请注意:我总是为mup/mupx文件指定一个端口
“env”:{
“端口”:5050,
“根URL”:http://youripaddress"
},
Update:在浏览器控制台中检查时,我可以看到有一个针对ws://simonlayfield.com/sockjs/612/6dozasr9/websocket的url请求被卡在“挂起”状态。我假设这是相关的。你用什么作为密码?我想GCE不允许通过用户名/密码进行用户身份验证?嗯,谢谢。我指定了“PORT”:80
,并通过ssh重新启动了docker。不幸的是,这似乎并没有解决这个问题。。。