Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop a jekyll local server

I've just set up my first Jekyll project locally. I've got the server running, but I forgot to use the auto flag. So now I want to stop the server and restart using the flag. However, in my command line after I started the server I didn't get a new prompt, so I can't enter any new commands. I'm not very used to the command line so I'd really appreciate knowing what I should do! I'm using Mac OS X and terminal.app if that makes a difference!

like image 934
musoNic80 Avatar asked Jul 09 '13 10:07

musoNic80


People also ask

How do I stop jekyll server?

Using Jekyll To view the website locally, go to http://localhost:4000. Afterwards you can press ctrl-c to stop the process in the terminal. You can also add the --watch command at the end to force Jekyll to rebuild the site every time you save the file.

How do I restart my jekyll server?

If you have the jekyll server still running, you will need to restart the server in order to build the changes. With the terminal window open, press control + C to stop the server, then enter bundle exec jekyll serve --livereload to build the site and run the server.

What does jekyll serve do?

jekyll serve or jekyll s - Builds your site any time a source file changes and serves it locally. jekyll clean - Removes all generated files: destination folder, metadata file, Sass and Jekyll caches. jekyll help - Shows help, optionally for a given subcommand, e.g. jekyll help build .

How do I change the port on my jekyll?

To change port number, you can edit docker_run.sh file. If you want to update jekyll, install new ruby packages, etc., all you have to do is build the image again using docker_build_image.sh ! It will download ruby and jekyll and install all ruby packages again from scratch.


2 Answers

ps aux |grep jekyll |awk '{print $2}' | xargs kill -9
like image 154
xuan_heng Avatar answered Sep 22 '22 16:09

xuan_heng


You can stop it with CTRL + C.

like image 44
Alessandro Pezzato Avatar answered Sep 19 '22 16:09

Alessandro Pezzato