Closed belgoros closed 3 years ago
did you obtain any fix for this? @belgoros
@TheLooseCannon I can't remember exactly the trick I used, but here is the latest version of deploy.js
, hope this helps:
/* eslint-env node */
'use strict';
module.exports = function(deployTarget) {
let ENV = {
build: {
environment: deployTarget,
outputPath: 'dist'
}
// include other plugin configuration that applies to all deploy targets here
};
ENV["revision-data"] = {
type: 'version-commit'
}
if (deployTarget === 'staging') {
ENV.s3 = {
accessKeyId: process.env.AWS_ACCESS_KEY,
secretAccessKey: process.env.AWS_SECRET_KEY,
bucket: process.env.AWS_BUCKET_NAME,
region: 'eu-west-1',
allowOverwrite: true,
acl: 'private'
};
ENV['s3-index'] = {
accessKeyId: process.env.AWS_ACCESS_KEY,
secretAccessKey: process.env.AWS_SECRET_KEY,
bucket: process.env.AWS_BUCKET_NAME,
region: 'eu-west-1',
allowOverwrite: true,
acl: 'private'
};
ENV.cloudfront = {
accessKeyId: process.env.AWS_ACCESS_KEY,
secretAccessKey: process.env.AWS_SECRET_KEY,
distribution: process.env.AWS_DISTRIBUTION_ID,
region: 'eu-west-1'
}
}
if (deployTarget === 'production') {
// put the production values here
}
// Note: if you need to build some configuration asynchronously, you can return
// a promise that resolves with the ENV object instead of returning the
// ENV object synchronously.
return ENV;
};
I got the above error when running
ember deploy build
command. Here is the full stack trace:Here is
deploy.js
file:The folder it can't find is present in
node_modules
directory of the Ember app:What's wrong here ? Thank you. My settings: