Local Development Quick Start
Local Development Quick Start
Use this every time you want to preview the site locally.
Start the local server
Run these commands in the project root:
Remove-Item Env:JEKYLL_GITHUB_TOKEN -ErrorAction SilentlyContinue
Remove-Item Env:GITHUB_TOKEN -ErrorAction SilentlyContinue
Remove-Item Env:OCTOKIT_ACCESS_TOKEN -ErrorAction SilentlyContinue
$env:JEKYLL_ENV="development"
npm run serve:local
Then open:
- http://127.0.0.1:4000
Keep the terminal running while you edit files.
Stop the server
- Press
Ctrl + Cin the terminal.
If the page does not open
- Check that
npm run serve:localis still running (no fatal error in terminal). - Make sure port
4000is not occupied by another process. - Restart with:
$env:JEKYLL_ENV="development"
npm run serve:local
bundle exec jekyll serve --livereload
