0

我正在尝试将mup deployMeteortodos示例用于运行 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遇到“奇怪的错误”

我应该降级 mup吗?

4

1 回答 1

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 应用程序。

于 2015-06-16T16:35:41.327 回答