[英]Meteor Deployed Showing Default Nginx Page
I successfully deployed my meteor app with similar settings shown in this tutorial: 我成功使用本教程中显示的类似设置成功部署了流星应用程序:
http://code.krister.ee/hosting-multiple-instances-of-meteor-on-digitalocean/ http://code.krister.ee/hosting-multiple-instances-of-meteor-on-digitalocean/
When I visit the URL, the default nginx shows up. 当我访问URL时,将显示默认的nginx。 I tried using a different url such as demo.example.com, but nothing loads.
我尝试使用其他网址,例如demo.example.com,但未加载任何内容。
I even tried changing the ports from 3001 to 80 to no ports specified in the mup.json
file 我什至尝试将端口从3001更改为80,而不在
mup.json
文件中指定端口
I checked the nginx/sites-enabled files and there was only default
, so I created a new one as outlined in the tutorial. 我检查了启用nginx / sites的文件,并且只有
default
,所以我按照教程中的概述创建了一个新文件。
I still can't get my ip or domain to load my app. 我仍然无法获取我的IP或域来加载我的应用程序。 Am I doing something wrong?
难道我做错了什么?
nginx is not pointing to the correct location. nginx没有指向正确的位置。 The default port for Telescope is
3000
. Telescope的默认端口是
3000
。 Have you tried setting the nginx configuration file to look for http://localhost:3000
instead of on port 3001
like the tutorial suggests? 您是否尝试过设置nginx配置文件以查找
http://localhost:3000
而不是按照本教程的建议在端口3001
上查找?
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection ‘upgrade’;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.