gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 06:43:26 25 4
gpt4 key购买 nike

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

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

  • 安装 Node.jsevents.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)在 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
}

最佳答案

https://github.com/arunoda/meteor-up#ssh-based-authentication-with-sudo ,您需要确保您的 key 文件不受密码保护。不确定您是否要部署到 Digital Ocean,但无论如何,本文仍然可以作为一个很好的引用:

http://meteortips.com/deployment-tutorial/digitalocean-part-1/

关于javascript - 尝试部署 Meteor 应用程序 -- mup 设置错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33596955/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com