Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.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
Meteor 在准备工作期间分析Passengerfile.json设置时出错_Meteor_Passenger - Fatal编程技术网

Meteor 在准备工作期间分析Passengerfile.json设置时出错

Meteor 在准备工作期间分析Passengerfile.json设置时出错,meteor,passenger,Meteor,Passenger,当试图通过passenger启动meteor应用程序时,我收到以下错误: Phusion乘客应用程序服务器试图启动web>应用程序,但乘客在执行>准备工作时遇到内部错误 错误详细信息: 解析/var/www/timportDB/bundle/Passengerfile.json时出错:*第9行,第16列 缺少“}”或对象成员名称 最初它似乎与我设置envvars的位置有关,但是我已经注释掉了它们,并使用命令行变量而不是设置文件来设置它们 这些变量是``--envvar MONGO_URL=mon

当试图通过passenger启动meteor应用程序时,我收到以下错误:

Phusion乘客应用程序服务器试图启动web>应用程序,但乘客在执行>准备工作时遇到内部错误

错误详细信息:

解析/var/www/timportDB/bundle/Passengerfile.json时出错:*第9行,第16列 缺少“}”或对象成员名称

最初它似乎与我设置envvars的位置有关,但是我已经注释掉了它们,并使用命令行变量而不是设置文件来设置它们

这些变量是``--envvar MONGO_URL=mondgodb://localhost:27017/timportDB --环境根目录=

根据《乘客指南》,程序应在
sudo乘客启动时运行

该程序正在Ubuntu 18.04.03.LTS上运行。我使用的是独立版本的Passenger

这是我的Passengerfile.json

{
  // Tell Passenger that this is a Meteor app.
  "app_type": "node",
  "startup_file": "main.js",
  // Store log and PID file in parent directory
  "log_file": "../passenger.log",
  "pid_file": "../passenger.pid"
  // Run the app in a production environment. The default value is "development".
  "environment": "production",
  // Run Passenger on port 80, the standard HTTP port.
  "port": 80,
  // Tell Passenger to daemonize into the background.
  "daemonize": true,
  // Tell Passenger to run the app as the given user. Only has effect
  // if Passenger was started with root privileges.
  "user": "timportdb",
  //better errors
  "friendly_error_pages":true
//  "envvars": {"MONGO_URL": "mongodb://localhost:27017/timportDB", "ROOT_URL": "http://timportDB",}
}

当程序启动时,我应该能够在0.0.0.0:80或(假设DNS设置正确)在“”访问我的web应用程序。

欢迎使用堆栈溢出

这是新手问题(无意冒犯)

json文件格式不允许任何类型的注释,它是一种仅数据格式

因此,要解决此问题,请删除以
/

{
  // Tell Passenger that this is a Meteor app.
  "app_type": "node",
  "startup_file": "main.js",
  // Store log and PID file in parent directory
  "log_file": "../passenger.log",
  "pid_file": "../passenger.pid"
  // Run the app in a production environment. The default value is "development".
  "environment": "production",
  // Run Passenger on port 80, the standard HTTP port.
  "port": 80,
  // Tell Passenger to daemonize into the background.
  "daemonize": true,
  // Tell Passenger to run the app as the given user. Only has effect
  // if Passenger was started with root privileges.
  "user": "timportdb",
  //better errors
  "friendly_error_pages":true
//  "envvars": {"MONGO_URL": "mongodb://localhost:27017/timportDB", "ROOT_URL": "http://timportDB",}
}