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!
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.
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.
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 .
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.
ps aux |grep jekyll |awk '{print $2}' | xargs kill -9
You can stop it with CTRL + C.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With