我尝试mup deploy
Meteor的todos
示例到运行Ubuntu 14.04 LTS x64的Vagrant VM。
Meteor Up支持Windows(我在Windows 7上):
您可以使用安装并在Linux,Mac和 Windows 中使用Meteor Up。
这是我的c:\code\todos\mup.json
:
{
"servers": [
{
"host": "127.0.0.1",
"port": 2222,
"username": "vagrant",
"password": "vagrant"
}
],
"setupMongo": true,
"setupNode": true,
"nodeVersion": "0.12.4",
"setupPhantom": true,
"enableUploadProgressBar": false,
"appName": "todos-app",
"app": "/code/todos",
"env": {
"ROOT_URL": "http://127.0.0.1",
"PORT": "3001", // The port you want to bind to on your server.
"UPSTART_UID": "vagrant" // The user you want to run meteor as.
},
"deployCheckWaitTime": 30
}
我的Vagrant VM已启动,PuTTYTray通过vagrant:vagrant@127.0.0.7:2222连接。然而mup deploy
失败了:
C:\code\todos>mup deploy
Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
" Checkout Kadira!
It's the best way to monitor performance of your app.
Visit: https://kadira.io/mup "
Building Started: /code/todos
? Can't build for mobile on Windows. Skipping the following platforms:
android, ios
Started TaskList: Deploy app 'todos-app' (linux)
[127.0.0.1] - Uploading bundle
events.js:85
throw er; // Unhandled 'error' event
^
Error: connect ECONNREFUSED
at exports._errnoException (util.js:746:11)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1010:19)
mup setup
相同。在虚拟机mup deploy
中遇到"weird error"。
我应该downgrade mup
吗?
答案 0 :(得分:0)
降级mup
并没有帮助:
C:\code\todos>npm install -g mup@0.9.7
C:\Users\Cees.Timmerman\AppData\Roaming\npm\mup -> C:\Users\Cees.Timmerman\AppData\Roaming\npm\node_modules\mup\bin\mup
mup@0.9.7 C:\Users\Cees.Timmerman\AppData\Roaming\npm\node_modules\mup
├── colors@0.6.2
├── underscore@1.7.0
├── uuid@1.4.2
├── async@0.9.2
├── rimraf@2.4.0 (glob@4.5.3)
├── cjson@0.3.1 (jsonlint@1.6.0)
└── nodemiral@0.3.11 (debug@0.7.4, ejs@0.8.8, handlebars@1.0.12)
C:\code\todos>mup -v
Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
sshpass required for password based authentication: refer http://git.io/_vHbvQ
C:\code\todos>mup deploy
Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
sshpass required for password based authentication: refer http://git.io/_vHbvQ
SSHPass无法在Windows上运行。
手动设置我的Meteor应用程序是在this answer的帮助下完成的。