Follow the instructions on help.github.com. If the third step fails, try installing ruby-dev
.
$ sudo apt-get install ruby-dev
$ sudo gem install bundler
$ git clone git@github.com:amphp/amphp.github.io amphp/docs
$ cd amphp/docs
$ bundle install
$ bundle exec jekyll serve
NOTE: Don't commit your work while Docker runs, otherwise
Gemfile
will be renamed toGemfile.docker
!
docker run --name=jekyll -v=$(pwd):/srv/jekyll -ti -p 127.0.0.1:4000:4000 jekyll/jekyll:pages
Next time you can just use docker start jekyll
/ docker stop jekyll
to start /stop it again.