1

我遇到了奇怪的问题 - 我用 mup 部署了我的 Meteor 应用程序(按照以下说明操作:https ://www.vultr.com/docs/deploy-a-meteor-application-on-ubuntu )。一切顺利(见截图)。

问题

但是,当我尝试通过浏览器访问内容时(我输入 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 应用程序感到好奇,请看一下 :)

4

0 回答 0