Hugo Run Configuration for Fleet
Contents
After getting tired of having to run hugo server -D from a terminal window everytime. I wanted to see if there is a
faster, less manual way.
Hugo Run Configuration for Fleet
There is not yet a Fleet plugin for Hugo like there is for IntelliJ IDEA Community Edition / Ultimate, but using the Fleet documentation, I was able to arrange the following that works.
-
Click the run / Play button icon or press Ctrl + R
-
Select option to
Create Run Configurationwhich should open a nearly blank file at./fleet/run.json -
Make the contents of run.json look something like this
{ "configurations": [ { "type": "command", "name": "Hugo Development Server", "program": "/usr/local/bin/hugo", "args": ["server", "-D"], }, ] } -
Save
run.json -
Hit the Run Button or press Ctrl + R again now your new
Hugo Development Serverrun configuration should be highlighted, then press Enter.