Testing script update for Pelican project



I finally had the focus to rework the testing script for this project. Let me tell you what I did. OKAY!?!

Testing Script update

Pelican comes with a prebuilt testing script. It turns on Pelican with autoreload and starts a local server. The script is simple and irritating to use. Since I have more than one config file for my project I needed to update the script so it could run two instances of Pelican at the same time.

I do not know Shell. I simply reworked it a bit.

I primarily did two things

  1. change the input API to something more natural
  2. Ensured both configs are run at the same time

They shouldn't be too difficult to follow. I think this script is much cleaner now. Without abstracting too much it lays bare the important parts of what it's doing.

Maybe I'll set it up so it loops and when you press Ctrl+C is shuts down everything, but I have no need to explore that yet.

Comments are loading... I hope ;)