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

Should docs explain hosting on s3? #179

Open
tomconnors opened this issue Apr 26, 2019 · 2 comments
Open

Should docs explain hosting on s3? #179

tomconnors opened this issue Apr 26, 2019 · 2 comments

Comments

@tomconnors
Copy link

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
@lacarmen
Copy link
Member

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 :)

@coreagile
Copy link

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!

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

4 participants