• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Run Jekyll in Background

August 7, 2019

Jekyll is a static website generator you can use for developing simple websites. If you are running Jekyll on your desktop, you can view your static website by running a local server. If you want the leave the web server up and running in the background all the time, you can run this command instead.

# normally you run this command
jekyll serve
# running it in the background
jekyll serve > /dev/null 2>&1 &
# add incremental which builds only deltas
jekyll serve --incremental > /dev/null 2>&1 &

# normally you run this command jekyll serve # running it in the background jekyll serve > /dev/null 2>&1 & # add incremental which builds only deltas jekyll serve --incremental > /dev/null 2>&1 &

To kill the server, run the following.

# find jekyll server process
ps -ef | grep jekyll
# substitute pid# with process id
kill -9 pid#

# find jekyll server process ps -ef | grep jekyll # substitute pid# with process id kill -9 pid#

Filed Under: Cloud, Linux Tagged With: generator, jekyll, serve, static, website

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023