Coder Social home page Coder Social logo

Comments (2)

LevelbossMike avatar LevelbossMike commented on July 30, 2024

Hi and thanks for the issue.

I have used ember-cli-deploy with prember and ember-cli-deploy-s3 but not with ember-cli-deploy-s3-index.

To make it work you just have to extend the file-pattern that ember-cli-deploy-s3 uses to determine which files to upload.

Prember prerenders your application and creates a directory structure and html files based on your routes.

In the projects where I implemented this I used ember-cli-deploy-s3 to upload all these files to s3. The difference between the workflow that s3-index provides is that there is no notion of revisions anymore. You just deploy and you change the content of your application (the directory structure that prember creates) in place.

If you want to have some kind of revisioning of content like s3-index usually provides I am not entirely sure what would need to be done to actually achieve this but this is certainly a use case that needed to be implemented seperately from s3-index. You would need to revision the entire directory structure and switch that around when activating a revision.

Maybe you create separate folders in s3 per revision and upload the entire content into that folder and on activation you replace the entire top-layer of your folder structure in s3. This is certainly an intersting concept and a useful plugin idea but nothing that is or I want to support in this plugin - just because it's a completely different workflow of what s3-index currently provides.

Happy to help with this though. It sounds like a nice idea to be able to use s3 and revisions with prember.

from ember-cli-deploy-s3-index.

adambedford avatar adambedford commented on July 30, 2024

@LevelbossMike Thanks for digging into this, really is appreciated. I wasn't thinking of s3-index in the right way -- totally makes sense it doesn't play nicely with Prember in the current situation.

We switched to just using one S3 bucket for the whole app and forgoing the revision history!

Thanks again!

from ember-cli-deploy-s3-index.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.