尝试部署Meteor应用程序 - mup设置错误

时间:2015-11-08 17:41:40

标签: javascript meteor deployment

有谁知道我在这里缺少什么?我在Windows机器上。这种情况发生在我自己构建的应用程序中。我也在Meteor的hello world应用程序上遇到同样的错误。提前致谢。

mup init工作正常,但是当我尝试运行mup setup时,我收到此错误消息。

  • 安装Node.js. events.js:141   扔掉//未处理的'错误'事件   ^ 错误:所有已配置的身份验证方法均 在tryNextAuth(C:\ Users \ Justin \ AppData \ Roaming \ npm \ node_modules \ mup \ node_modules \ nodemiral \ node_modules \ ssh2 \ lib \ client.js:290:17) 在SSH2Stream.onUSERAUTH_FAILURE(C:\ Users \ Justin \ AppData \ Roaming \ npm \ node_modules \ mup \ node_modules \ nodemiral \ node_modules \ ssh2 \ lib \ client.js:469:5) 在emitTwo(events.js:87:13) 在SSH2Stream.emit(events.js:172:7) at parsePacket(C:\ Users \ Justin \ AppData \ Roaming \ npm \ node_modules \ mup \ node_modules \ nodemiral \ node_modules \ ssh2 \ node_modules \ ssh2-streams \ lib \ ssh.js:3652:10) 在SSH2Stream._transform(C:\ Users \ Justin \ AppData \ Roaming \ npm \ node_modules \ mup \ node_modules \ nodemiral \ node_modules \ ssh2 \ node_modules \ ssh2-streams \ lib \ ssh.js:555:13) 在SSH2Stream.Transform._read(_stream_transform.js:167:10) 在SSH2Stream._read(C:\ Users \ Justin \ AppData \ Roaming \ npm \ node_modules \ mup \ node_modules \ nodemiral \ node_modules \ ssh2 \ node_modules \ ssh2-streams \ lib \ ssh.js:213:15) 在SSH2Stream.Transform._write(_stream_transform.js:155:12) 在doWrite(_stream_writable.js:292:12)

// ---------------以下是我的mup.json文件中的信息----------

{
  // Server authentication info
  "servers": [
    {
      "host": "xxx.xxx.xxx.xx",
      "username": "xxxxxx",
      "password": "xxxxxx"
      // or pem file (ssh based authentication)
      //"pem": "~/.ssh/id_rsa"
    }
  ],

  // Install MongoDB in the server, does not destroy local MongoDB on future setup
  "setupMongo": false,

  // 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.36 by default. Do not use v, only version number.
  "nodeVersion": "0.10.40",

  // Install PhantomJS in the server
  "setupPhantom": true,

  // Show a progress bar during the upload of the bundle to the server.
  // Might cause an error in some rare cases if set to true, for instance in Shippable CI
  "enableUploadProgressBar": true,

  // Application name (No spaces)
  "appName": "alp-new",

  // Location of app (local directory)
  "app": ".",

  // Configure environment
  "env": {
    "ROOT_URL": "http://xxxx.xxxx.com/",
    "MONGO_URL": "mongodb://xxxxxx:xxxxxx@candidate.55.mongolayer.com:10503,candidate.16.mongolayer.com:11209/alp-telescope?replicaSet=set-5634fd304bed0503ed000ade"
  },

  // 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": 30
}

1 个答案:

答案 0 :(得分:0)

https://github.com/layerhq/Layer-Parse-iOS-Example,您需要确保密钥文件不受密码保护。不确定您是否部署到Digital Ocean,但无论如何,本文仍然可以作为一个很好的参考:

https://github.com/arunoda/meteor-up#ssh-based-authentication-with-sudo