Windows 7 Windows 7 Meteor UP(MUP)错误:spawn enoint
我是新来的。我创建了一个应用程序,我正在使用Meteor UP(MUP)上传到服务器。我已经安装了cPanel的专用linux服务器。我可以通过SSH访问服务器 我的本地安装程序中有windows 7,我正试图从中部署应用程序。我创建了一个私钥,并将其与MUP一起用于部署应用程序。但是,当我在命令提示符下运行Windows 7 Windows 7 Meteor UP(MUP)错误:spawn enoint,windows-7,ssh,meteor,meteor-up,Windows 7,Ssh,Meteor,Meteor Up,我是新来的。我创建了一个应用程序,我正在使用Meteor UP(MUP)上传到服务器。我已经安装了cPanel的专用linux服务器。我可以通过SSH访问服务器 我的本地安装程序中有windows 7,我正试图从中部署应用程序。我创建了一个私钥,并将其与MUP一起用于部署应用程序。但是,当我在命令提示符下运行mup setup时,会出现以下错误: Meteor Up: Production Quality Meteor Deployments --------------------------
mup setup
时,会出现以下错误:
Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
Started TaskList: Setup
[207.244.66.193] - Installing Node.js
[207.244.66.193] ? Installing Node.js: FAILED
spawn ENOENT
Completed TaskList: Setup
这是我的mup.json文件
{
// Server authentication info
"servers": [
{
"host": "xxx.xxx.xx.xxx",
"username": "devmain",
//"password": "password"
// or pem file (ssh based authentication)
"pem": "/Users/Jackal/Desktop/mup1"
}
],
// Install MongoDB in the server, does not destroy local MongoDB on future setup
"setupMongo": true,
// WARNING: Node.js is required! Only skip if you already have Node.js installed on server.
"setupNode": true,
// WARNING: If nodeVersion omitted will setup 0.10.25 by default. Do not use v, only version number.
"nodeVersion": "0.10.25",
// Install PhantomJS in the server
"setupPhantom": true,
// Application name (No spaces)
"appName": "myappname",
// Location of app (local directory)
"app": "/Users/Jackal/Desktop/app",
// Configure environment
"env": {
"PORT": 3000,
"ROOT_URL": "http://myapp.com"
},
// Meteor Up checks if the app comes online just after the deployment
// before mup checks that, it will wait for no. of seconds configured below
"deployCheckWaitTime": 15
}
有人能指出我这里做错了什么吗?由于您运行的是cPanel,很可能您没有运行基于debian的操作系统,因为它只支持基于redhat的系统,因为MeteorUP依赖于
apt
命令,而这仅在基于debian的系统上可用,MeteorUP将不起作用
要在生产环境中运行应用程序,您可以使用systemd:
[Service]
ExecStart=[path_to_your_meteor_cmd] [path_to_your_app]
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=[your_app_name]
User=[user_it_runs_under]
Group=[group_it_runs_under]
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
将其另存为[your_app_name].service
并用正确的值替换每个[]
后,将脚本放入/etc/systemd/system/
,然后运行命令systemctl enable[appname].service
和systemctl start[appname].service
,启用将在重新启动/崩溃后自动启动应用程序
这是我的参考:
[Service]
ExecStart=/usr/local/bin/meteor /home/meteor-run/spottr/
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=spottr
User=spottr
Group=spottr
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
你运行的是debian还是ubuntu系统?因为它需要apt软件包管理器在场。我检查了一下,它正在运行redhat系统:(不能让你像那样挂着,所以我给出了一个替代方案,你可以用systemd:-)