Skip to content

Deploying locally

damios edited this page Aug 28, 2020 · 17 revisions

To test your changes locally, you have to deploy jekyll on your machine. This can be done in the following way:

  1. Install a full Ruby development environment.
  2. Install Jekyll and bundler gems:
gem install jekyll bundler
  1. In your working directory, install the other dependencies of the gemfile:
bundle install
  1. Run Jekyll locally:
$ bundle exec jekyll serve
> Configuration file: /Users/octocat/my-site/_config.yml
>            Source: /Users/octocat/my-site
>       Destination: /Users/octocat/my-site/_site
> Incremental build: disabled. Enable with --incremental
>      Generating...
>                    done in 0.309 seconds.
> Auto-regeneration: enabled for '/Users/octocat/my-site'
> Configuration file: /Users/octocat/my-site/_config.yml
>    Server address: http://127.0.0.1:4000/
>  Server running... press ctrl-c to stop.
  1. Preview your local site at: http://localhost:4000
Clone this wiki locally