From 391b2a115c7e5b1a76368f097c2f9ddccd2e08ee Mon Sep 17 00:00:00 2001 From: Arthur Vercruysse Date: Sun, 6 Sep 2020 20:49:55 +0200 Subject: [PATCH] help fellow windows programmers :/ --- Gemfile | 1 - README.md | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index c9cb6b0..07dc471 100644 --- a/Gemfile +++ b/Gemfile @@ -12,7 +12,6 @@ gem 'sass' gem 'nokogiri' gem 'sassc' gem 'slim' -gem 'sass' group :nanoc do gem 'guard-nanoc' diff --git a/README.md b/README.md index 9a664d1..11079c4 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,16 @@ Durf Doen 2.0 2. Install other gems (`bundle install`) 3. Build and serve the site (`bundle exec nanoc live`) +### Setup on windows + +This is very flacky, but it might help to +- Ofcourse only install ruby 2.6 +- change `gem 'mini_racer'` to `gem 'mini_racer', platforms: :ruby` in Gemfile +- following this github page https://github.com/eakmotion/therubyracer_for_windows +- Edit this file `C:\Ruby26-x64\lib\ruby\gems\2.6.0\gems\eventmachine-1.2.7-x64-mingw32\lib` by adding `require 'em pure_ruby'` and a newline to the top of the file. +- After all this, on my machine, it still throws an exception, but the live reloading works, until it doesn't (most of the time after a failed compile) + + ### Optional setup via docker You can run the code in a separated docker environment. It compiles the code and serves the files via nginx.