-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is worthy to mention deployment script modifications for VERSION.txt in the documentation #40
Comments
I made these changes in my cloudfront: {
accessKeyId: process.env.AWS_KEY,
secretAccessKey: process.env.AWS_SECRET,
distribution: process.env.AWS_CLOUDFRONT_DISTRIBUTION,
objectPaths: ["/index.html", "/VERSION.txt*"],
},
gzip: {
ignorePattern: "VERSION.txt",
},
manifest: {
fileIgnorePattern: "VERSION.txt",
}, I think a section in the readme specific to ember-cli-deploy would be pretty useful since that's the most common deployment setup. Can probably include a short paragraph to explain what needs to be done in general for other solutions too. |
Given https://github.com/sethwebster/ember-cli-new-version/blob/master/addon/components/new-version-notifier/component.js#L62 I don't think you need to worry about specific cache policies. They are going to be ignored anyway. I'm not sure about the reason to not gzip either. Maybe something in your specific setup? Mainly just curious as I just added this and I want to make sure I didn't miss anything in my deployment. |
I stumbled on this as well. To get this to work, i needed to include:
Without that, the VERSION.txt file is ignored when it comes time to upload to s3. In addition, my CloudFront distro was caching the VERSION.txt even with the cache busting query param which is appended to the request. In CloudFront I created a None of that was hard, but it took some time to figure out. +1 for including some discussion in the docs. |
@averydev I'm open to a section in the readme about deployment. Could you submit a PR for cloudfront/s3? |
As many would use
ember-cli-deploy
, VERSION.txt should go in separate step, e.g.It is good idea to have the same bucket as
index
file.The text was updated successfully, but these errors were encountered: