Search code examples
ember.jsdeploymentamazon-s3ember-cli

How can i deploy ember cli index to s3 without sha


i'm using ember-cli-deploy and ember-deploy-s3-index.

Following this article i managed to deploy the index to a bucket with static web hosting and another bucket holding the assets.

I want to automate (CI) the deploy process but there are two problems:

  1. Each deploy adds an index file with a new name (test:b2907fa.html for example), and i need to manually change the index document to match the latest deploy in my s3 configuration.
  2. I need to add permissions to the file on each deploy.

I would like to have a fixed name (override existing on deploy) for my index file, and that the file will have view permissions by default.

Is this possible? Thanks.


Solution

  • Turn out you don't need to change the index document.

    After deploy you need to run ember:deploy:activate --revision test:b2907fa --environment production and it will change it in the s3 bucket.