点击流星乘客教程:https://github.com/phusion/passenger/wiki/Phusion-Passenger:-Meteor-tutorial#deploying_to_production。使用流星1.0.2.1和乘客4.0.57。 public和tmp目录都存在。
但得到了错误
App 10979 stderr: mkdir:
App 10979 stderr: cannot create directory `/nonexistent/.meteor-install-tmp'
App 10979 stderr: : No such file or directory
启动服务器时。无法弄清楚哪里出了问题。
nginx配置为:
server {
listen 8080;
server_name www.example.com;
root /root/myapp/public;
passenger_enabled on;
passenger_sticky_sessions on;
passenger_set_cgi_param MONGO_URL mongodb://localhost:27017/meteor;
passenger_set_cgi_param MONGO_OPLOG_URL mongodb://localhost:27017/local;
passenger_set_cgi_param ROOT_URL http://www.example.com;
# Set these ONLY if your app is a Meteor bundle!
#passenger_app_type node;
#passenger_startup_file main.js;
}