cryogen-project/cryogen

Should docs explain hosting on s3?

Opened this issue · 2 comments

Thanks a lot for cryogen!

In order to get a cryogen site hosted as a static s3 site, I needed to make a couple configuration changes. Perhaps there should be a dedicated page in the docs for that? If you'd like a PR for that I'll provide it, but the gist of it is just:

In config.edn:

  • set :blog-prefix to "/"
  • set :clean-urls to false

Then copy resources/public/ to s3. With aws cli, that's

aws s3 cp /PATH/TO/resources/public/ s3://BUCKET/ --recursive

I think a dedicated page would be nice, and there's already a "Deployment" section on the docs site for that. If you could provide the PR that would be great :)

Thanks so much for this information! I used it and added a bit more to it to make my new blog work. Also based on an S3 bucket with CloudFront for SSL and content distribution.

If you have energy to make a PR, I have a slightly alternative approach you might want to look at. Here's my post describing some of what I did: https://www.calmabiding.me/posts-output/2019-05-23-welcome-to-my-new-blog.html

Happy to fill in any gaps if you need!