Skip to content
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

Is it possible to deploy/copy files in a certain order #63

Closed
stefan-lz opened this issue Jul 20, 2018 · 3 comments
Closed

Is it possible to deploy/copy files in a certain order #63

stefan-lz opened this issue Jul 20, 2018 · 3 comments

Comments

@stefan-lz
Copy link
Contributor

stefan-lz commented Jul 20, 2018

Hiya, I would like to be able to deploy files in a certain order, specifically the index.html file after all the other assets have been copied over. This will decrease downtime, as all the assets will be resolvable as soon as index.html is served.

I've worked around this by deploying using these 2 commands:

DIST_FOLDER=build_assets serverless client deploy --no-confirm --no-delete-contents
DIST_FOLDER=build_index serverless client deploy --no-confirm --no-delete-contents

with this config:

custom:
  client:
    bucketName: ${self:provider.domain}
    distributionFolder: ${env:DIST_FOLDER}

Am I missing an easier solution, or could this be better supported in finch?

@fernando-mc
Copy link
Owner

@stefan-lz I don't think we currently support ordering for the file uploads but that doesn't mean we can't. Your workaround seems pretty clever and functional to me. But I think we'd be happy to accept something that simplifies the process.

@stefan-lz
Copy link
Contributor Author

@fernando-mc ok cool, I'll have a think how to support this and try come up with something.

@fernando-mc
Copy link
Owner

This is live in v2.3.0 which is building and deploying now.

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

No branches or pull requests

2 participants