简体   繁体   English

显示默认Nginx页面的流星已部署

[英]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.

相关问题 部署的node.js应用程序未显示在默认IP地址上,而nginx默认页面运行正常 - deployed node.js app does not show up on default IP address while nginx default page works fine 无法在Ubuntu上部署Meteor应用(Nginx问题) - Can't get Meteor app deployed on Ubuntu (Nginx issue) 成功将节点应用程序部署到OpenShift,OpenShift仍显示默认页面 - Deployed Node app to OpenShift successfully, OpenShift still shows default page Nginx配置Meteor部署 - Nginx config for Meteor deployment 流星NGinx错误网关 - Meteor NGinx Bad Gateway 重新启动 nginx 后,Angular 不显示索引页面 - Angular don't showing index page after restart nginx Oracle Linux 服务器的 Nginx 配置返回/重定向到默认的 oracle 页面 - Nginx Configuration for Oracle Linux Server returning/redirecting to default oracle page 端口80上的Meteor App和Nginx - Meteor App and Nginx on Port 80 Mongodb、Reactjs、Express、Node js Heroku 部署显示空白页和 404 错误。 在本地工作 - Mongodb, Reactjs, Express, Node js Heroku deployed showing blank page and 404 errors. Works locally 为什么我的 reactjs 应用程序在使用 github 页面部署时显示空白页面? - Why is my reactjs application showing a blank page when deployed with github pages?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM