我正在尝试在成功运行mup init
后手动执行mup deploy
。但是我在下面收到这个错误信息-
ubuntu@dev-ip-xxx-xx-xx-xx:~/myapp/spa/meteor-api/.deploy$ mup deploy
Building App Bundle Locally
Started TaskList: Pushing Meteor App
[1.2.3.4] - Pushing Meteor App Bundle to the Server
events.js:291
throw er; // Unhandled 'error' event
^
Error: Timed out while waiting for handshake
at Timeout._onTimeout (/usr/local/lib/node_modules/mup/node_modules/ssh2/lib/client.js:695:19)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
Emitted 'error' event on Client instance at:
at Timeout._onTimeout (/usr/local/lib/node_modules/mup/node_modules/ssh2/lib/client.js:697:14)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7) {
level: 'client-timeout'
}
我已经使用我的mup.js
文件运行mup init
。我没有以同样的方式运行mup deploy
,因为它向我显示了一个错误消息,说.deploy
不是流星应用程序。
现在你们中有谁知道这里的问题是什么,为什么我得到这个错误消息?
该错误意味着mup
无法连接到EC2实例。确保在mup.js
文件中包含正确的凭据(IP、用户名和pem文件路径)。
可以通过运行mup ssh one