我正在尝试使用 Meteor Up 插件 mup-aws-beanstalk 将项目部署到 AWS。说明非常简单。安装插件,从您的 AWS 帐户获取一些信息,修改与您的项目相关的文件,运行部署命令“mup deploy”。文档在这里https://github.com/zodern/mup-aws-beanstalk/blob/master/docs/getting-started.md
运行部署命令后,我得到这个错误/输出
PS C:\Users\Arsla\OneDrive\Desktop\Greg\radgrad2\app\.deploy> mup deploy
Unable to load plugin mup-aws-beanstalk
ReferenceError: regeneratorRuntime is not defined
at C:\Users\Arsla\AppData\Roaming\npm\node_modules\mup-aws-beanstalk\lib\command-handlers.js:11:46
at Object.<anonymous> (C:\Users\Arsla\AppData\Roaming\npm\node_modules\mup-aws-beanstalk\lib\command-handlers.js:220:2)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (C:\Users\Arsla\AppData\Roaming\npm\node_modules\mup-aws-beanstalk\lib\commands.js:8:24)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (C:\Users\Arsla\AppData\Roaming\npm\node_modules\mup-aws-beanstalk\lib\index.js:9:18)
PS C:\Users\Arsla\OneDrive\Desktop\Greg\radgrad2\app\.deploy>
我尝试重新安装 mup 和 mup-aws-beanstalk,但这没有用。我的 env.MONGO_URL 可能是错误的,但我不确定如何检查。和已替换为适当的信息id
。secret
这是我修改的文件:.deploy/mup.js
module.exports = {
app: {
// Tells mup that the AWS Beanstalk plugin will manage the app
type: 'aws-beanstalk',
name: 'radgrad2',
path: 'C:\Users\Arsla\OneDrive\Desktop\Greg\radgrad2\app\.deploy',
env: {
ROOT_URL: 'http://localhost:3200/',
MONGO_URL: 'mongodb://localhost:27017/radgrad2' //not sure about this, but localhost:27017 is the default local host for MongoDB
},
auth: {
id: '12345', // provided by AWS
secret: '6789' // provided by AWS
},
minInstances: 1
},
plugins: ['mup-aws-beanstalk']
};
我应该在哪里寻找错误的根源?