Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Nginx 部署的Meteor应用程序始终返回HTML文件_Nginx_Meteor_Upstart - Fatal编程技术网

Nginx 部署的Meteor应用程序始终返回HTML文件

Nginx 部署的Meteor应用程序始终返回HTML文件,nginx,meteor,upstart,Nginx,Meteor,Upstart,我使用guide部署了meteor应用程序,它将引导您完成nginx设置并编写一个Upstart脚本。一切都很好——我可以通过MongoDB中的日志看到服务器正在运行。但是,向应用程序发出任何类型的http请求都会返回一个HTML文件,该文件如下所示: <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" class="__meteor-css__

我使用guide部署了meteor应用程序,它将引导您完成nginx设置并编写一个Upstart脚本。一切都很好——我可以通过MongoDB中的日志看到服务器正在运行。但是,向应用程序发出任何类型的http请求都会返回一个HTML文件,该文件如下所示:

<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" type="text/css" class="__meteor-css__" href="/936d1dcb9d4c6f9e2d068003929d00edaea39a87.css?meteor_css_resource=true">
            <script type="text/javascript">__meteor_runtime_config__ = {"meteorRelease":"METEOR@1.0.3.2","ROOT_URL":"http://appname.myserver.com","ROOT_URL_PATH_PREFIX":"","autoupdateVersion":"3fffc72460404bce55af5963e369702ab5a1a85f","autoupdateVersionRefreshable":"7fbcbd377f48fbf1ff3e288e433b9b5bdb25d6dd","autoupdateVersionCordova":"none"};</script>
            <script type="text/javascript" src="/5e974726f55e28b0daf88c48237b1131c3d9b50e.js"></script>
            <title>api-rest</title>
        </head>
        <body></body>
    </html>

__meteor_运行时_配置_uu={“meteorRelease”:METEOR@1.0.3.2,“根URL”:http://appname.myserver.com“根URL路径前缀”:“自动更新”:“3fffc72460404bce55af5963e369702ab5a1a85f”,“自动更新刷新”:“7fbcbd377f48fbf1ff3e288e433b9b5bdb25d6dd”,“自动更新Cordova”:“无”};
api rest
它引用的每个脚本文件都是同一个文件,所以这进一步证明了每个请求都只是给出了这个响应。我非常困惑,因为使用
meteor deploy appname.meteor.com
部署应用程序效果很好,而且应用程序的日志文件中没有日志

有人知道如何修复此问题,或者知道如何开始调试它吗?

使用mup:

Diginatocean的指南可能已经过时,从未奏效,或者两者兼而有之。总的来说,对于这样一个简单的任务来说,它似乎太复杂了