Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Add option for prefix when deploying files to S3 #29

Closed
alexbuijs opened this issue Dec 10, 2015 · 5 comments
Closed

Add option for prefix when deploying files to S3 #29

alexbuijs opened this issue Dec 10, 2015 · 5 comments
Milestone

Comments

@alexbuijs
Copy link
Contributor

I would like to reuse the same S3 bucket for several apps. The s3-sync-aws package supports an prefix option. Can the init and deploy commands be expanded to include this option?

@nikDemyankov
Copy link
Member

Cool, will check your PR. Thanks.

@diegodotta
Copy link

Nice idea @alexbuijs, this is a great for creating test/prod server, I create a grunt command to change the s3bucket/content_url before deploy, I change the "s3bucket" var into cordova-hcp.json to "mybucket/folder" and works well! 💃

@alexbuijs
Copy link
Contributor Author

I did that too. What I also did, and what saved me a couple of times, is to add an app version number in the bucket path. This way you can independently hot deploy different versions of the app. This is especially handy if you don't want to enforce the user to always upgrade to the latest version. But even if you do, this can prevent timing issues with deploying the hot code push update and the availability of the new version of the app in the stores. My content_url looks like this: $app/$env/chcp/$app_version/

@diegodotta
Copy link

Mmmmm... Interesting approach! I'll think about it.

@nikDemyankov nikDemyankov added this to the v1.1.0 milestone May 4, 2016
@nikDemyankov
Copy link
Member

Released in v1.1.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants