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

Discussion: Building for static deployments #46

Open
paulirish opened this issue May 16, 2018 · 0 comments
Open

Discussion: Building for static deployments #46

paulirish opened this issue May 16, 2018 · 0 comments

Comments

@paulirish
Copy link
Contributor

Static deployments on now come with some benefits, namely, that the instances are never put to sleep and dont count against your instances limit.

In my personal uses of stage-ci, I mostly just want static assets hosted. I don't have a custom webserver I need stood up. I'm thinking we could make this easier to pull off when using stage-ci.

Proposal:

If your package.json has an npm script named stage-build_static, stage-ci will run it and expect that it creates a new folder named _static which contains an index.html and all the assets. stage-ci will then have now deploy that _static folder.


Obviously we're relying on two naming conventions here, but since now-start and now-build are a thing, it seems reasonable. I'm totally open to names being different, or another approach entirely. Thoughts?

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

No branches or pull requests

1 participant