【问题标题】:mup setup/deploy - ECONNREFUSED on 127.0.0.1mup 设置/部署 - ECONNREFUSED 在 127.0.0.1
【发布时间】:2015-08-24 10:16:13
【问题描述】:

我正在尝试将 mup deploy todos Meteor 示例添加到运行 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 也一样。而在VM中mup deploy遇到了"weird error"

我应该downgrademup吗?

【问题讨论】:

    标签: vagrant meteor-up vagrant-windows


    【解决方案1】:

    降级 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 上不起作用。

    this answer 的帮助下手动设置我的 Meteor 应用程序。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-08
      • 1970-01-01
      • 2014-11-30
      • 2014-02-12
      • 2020-12-11
      • 2021-12-22
      • 1970-01-01
      • 2017-08-05
      相关资源
      最近更新 更多