DEV Community

Discussion on: Setting Up Pelican Static Site Generator

Collapse
 
mintii profile image
Brittney Braxton

I think something that's crucial to point out is answering yes to the question of creating a Makefile while doing pelican quickstart. This was needed for ease in deploying. Thanks for sharing your experience. It greatly helped in making my test blog with Pelican!

Collapse
 
fpcorso profile image
Frank Corso • Edited

I'm glad it helped!

Since make isn't something that is available on most Windows environments, like the one I use 😉, I was showing the command pelican --listen which will work across all platforms instead of make serve and would use pelican content instead of make html or make publish as shown in the top section of the "Publish your site" docs: docs.getpelican.com/en/stable/publ...

However, I agree that I should probably add some information about the Makefile and explain how to use it. I'll update the article this week when I have a moment.

Collapse
 
mintii profile image
Brittney Braxton

Excellent point, and I'm sorry for assuming Make was available ubiquitously. How did you deploy your Pelican app? I was struggling with getting it launched on Netlify, and the makefile really helped.

Thread Thread
 
fpcorso profile image
Frank Corso

What I did with my site was use Netlify's GitHub integration to automatically build any time I push to my repo. Then, under the "Build & deploy" settings for the site, I use the pelican content build command and point the publish directory to output.

There are several steps to setting up Netlify, so I might write a follow-up post on this at some point but setting the build command and publish directory is the main part of getting it to work.