Live data from Hacker News

Open source template for building static web sites with Prismic.io and AWS S3

futurice.com

1–10 of 23 posts

Re: Open source template for building static web sites with Prismic.io and AWS S3

#2
This is a pretty nice setup for those who aren't technical or couldn't be expected to setup a local environment to test in.

I used to work in IT at a place with used this GOD-AWFUL CMS that did this similarly but was written in apparently jQuery-plugin-hell and ASP.NET Forms. The website to edit was slow (many seconds per page. In page JS actions took many seconds) and required manual deploys.

Code could not be edited outside the browser editors (PHP, JS, etc.)

So a system that publishes a static site on S3 fairly easily seems like a win to me.

Re: Open source template for building static web sites with Prismic.io and AWS S3

#3
Oh man, this is clever. Out of curiosity, can Prismic's content editor be made to work with a secondary CMS like WordPress or Drupal without a lot of trouble?

One of the problems I've run into as a writer is that … well, nearly every copy editing tool out there sucks, and the ones that didn't (Poetica, Editorially) inevitably don't have a business model and get bought out.

Re: Open source template for building static web sites with Prismic.io and AWS S3

#4
Seems pretty cool. I host several static web sites on S3 and am pretty happy with the results. I am presuming that this toolset will make collaboration and organisation of said sites much better.

Question - How well does it work if the S3 website is linked to a CloudFront CDN? Does it take care of asset versioning or URL invalidations when updates are done? That is by far the most tedious part of S3 Web + CloudFront for me. I just invalidate the whole site from top down whenever I make changes just to make sure I don't miss anything, but a more automated, granular approach would be better, and I am hoping that Prismic can assist?

Re: Open source template for building static web sites with Prismic.io and AWS S3

#5
Thinking of moving a static site to S3 + CloudFront + AWS Certificate Manager with the purpose of enabling HTTPS for the site. Seems like CloudFront does not support index document even if you've enabled it on S3 (https://tiffanybbrown.com/2016/01/aws-certificate-manager-s3...). You can't have URL such as https://example.com/about/. Instead need to specifically use URL https://example.com/about/index.html.

Will look into Netlify and Aerobatic next. Are there other PaaS/SaaS that makes it easy to host HTTPS static site generated from Jekyll/Hugo?

Re: Open source template for building static web sites with Prismic.io and AWS S3

#6
post #5

Thinking of moving a static site to S3 + CloudFront + AWS Certificate Manager with the purpose of enabling HTTPS for the site. Seems like CloudFront does not support index document even if you've enabled it on S3 ( https://tiffanybbrown.com/2016/01/aws-certificate-manager-s3... ). You can't have URL such as https://example.com/about/ . Instead need to specifically use URL https://example.com/about/index.html . Will l…

I'm using index document paths on S3 + CloudFront right now, it's definitely possible. Unfortunately, I don't remember exactly what I did to make it work. Some more Googling might give you the answer.

Edit: the setting is called "Default Root Object" when setting up a CloudFront distribution with an S3 origin.

Re: Open source template for building static web sites with Prismic.io and AWS S3

#7
post #5

Thinking of moving a static site to S3 + CloudFront + AWS Certificate Manager with the purpose of enabling HTTPS for the site. Seems like CloudFront does not support index document even if you've enabled it on S3 ( https://tiffanybbrown.com/2016/01/aws-certificate-manager-s3... ). You can't have URL such as https://example.com/about/ . Instead need to specifically use URL https://example.com/about/index.html . Will l…

I use and like https://github.com/laurilehmijoki/s3_website.

Re: Open source template for building static web sites with Prismic.io and AWS S3

#9
post #6
post #5

Thinking of moving a static site to S3 + CloudFront + AWS Certificate Manager with the purpose of enabling HTTPS for the site. Seems like CloudFront does not support index document even if you've enabled it on S3 ( https://tiffanybbrown.com/2016/01/aws-certificate-manager-s3... ). You can't have URL such as https://example.com/about/ . Instead need to specifically use URL https://example.com/about/index.html . Will l…

I'm using index document paths on S3 + CloudFront right now, it's definitely possible. Unfortunately, I don't remember exactly what I did to make it work. Some more Googling might give you the answer. Edit: the setting is called "Default Root Object" when setting up a CloudFront distribution with an S3 origin.

Are you doing HTTPS? According to the article, the problem exists when running over HTTPS.

Re: Open source template for building static web sites with Prismic.io and AWS S3

#10
post #5

Thinking of moving a static site to S3 + CloudFront + AWS Certificate Manager with the purpose of enabling HTTPS for the site. Seems like CloudFront does not support index document even if you've enabled it on S3 ( https://tiffanybbrown.com/2016/01/aws-certificate-manager-s3... ). You can't have URL such as https://example.com/about/ . Instead need to specifically use URL https://example.com/about/index.html . Will l…

I use Kloudsec CDN to get HTTPS on my static sites. It's very easy to set up and free (certificates are from Let's Encrypt). You can use it for custom domains on GitHub pages as well.

https://www.kloudsec.com/

Post reply on HN