使用mup部署后,Meteor app不会出现在浏览器中

时间:2016-01-01 23:51:45

标签: meteor meteor-up

我面临着一个奇怪的问题 - 我用mup部署了我的Meteor应用程序(遵循这条指令:https://www.vultr.com/docs/deploy-a-meteor-application-on-ubuntu)。一切顺利(见截图)。

issue

但是,当我尝试通过浏览器访问它时,内容不会出现(我输入IP地址)。

作为服务器,我在Ubuntu 15.04上使用apache2,mup.json如下:

{
// Server authentication info
"servers": [
{
  "host": "IP_ADDRESS",
  "username": "developer"
  //"password": "password"
  // or pem file (ssh based authentication)
  //"pem": "~/.ssh/id_rsa"
}
],

// Install MongoDB in the server, does not destroy local MongoDB on future setup
"setupMongo": false,

// 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": "meteor",

// Location of app (local directory)
"app": "~/app",

// Configure environment
"env": {
"PORT": 80,
"UPSTART_UID": "meteoruser",
"ROOT_URL": "http://IP_ADDRESS",//and I also tried http://localhost
//"MONGO_URL": "",
"METEOR_ENV": "production"
},

// 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": 15
} 

我将不胜感激任何帮助!提前谢谢!

UPD:我做了一个更好的研究,发现了一个很棒的教程 - https://www.phusionpassenger.com/library/walkthroughs/deploy/meteor/ownserver/apache/oss/vivid/deploy_app.html。所以,如果有人对如何部署Meteor应用程序感到好奇,请看看:)

0 个答案:

没有答案