How to run Jekyll locally
-
Clone the repository:
git clone your_repo_url -
Navigate into the project directory:
cd repo_name -
Install the required dependencies:
bundle install -
Build the site:
bundle exec jekyll build -
Build and serve the site locally:
bundle exec jekyll serve --watch -
Open your browser and go to
<http://localhost:4000>to see your site. -
To stop the server, press
Ctrl + Cin the terminal.
Make sure you have Ruby and Bundler installed on your machine before running these commands.
-
If you don’t have a gemfile and bundler, you should just be able to run:
jekyll serve --watch
This will start the Jekyll server and watch for changes in your files, allowing you to see updates in real-time as you edit your site.
No webmentions were found.