1
0
Fork 0
mirror of https://github.com/safing/web synced 2025-04-22 11:59:08 +00:00

Merge pull request from safing/feature/compatibility-problems

Fixing Docker/jekyll problems
This commit is contained in:
David 2022-10-12 12:06:35 +00:00 committed by GitHub
commit c41be91aeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 37 additions and 35 deletions

View file

@ -11,4 +11,4 @@ group :jekyll_plugins do
gem 'jekyll-redirect-from'
end
gem 'therubyracer'
gem 'webrick'

View file

@ -1,37 +1,37 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
colorator (1.1.0)
concurrent-ruby (1.1.6)
concurrent-ruby (1.1.10)
cssminify2 (2.0.1)
em-websocket (0.5.1)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
http_parser.rb (~> 0)
eventmachine (1.2.7)
execjs (2.7.0)
ffi (1.13.1)
execjs (2.8.1)
ffi (1.15.5)
forwardable-extended (2.6.0)
htmlcompressor (0.4.0)
http_parser.rb (0.6.0)
i18n (1.8.5)
http_parser.rb (0.8.0)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
jekyll (4.1.1)
jekyll (4.2.2)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.1)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.4.0)
pathutil (~> 0.9)
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 1.8)
terminal-table (~> 2.0)
jekyll-minifier (0.1.10)
cssminify2 (~> 2.0)
htmlcompressor (~> 0.4)
@ -41,43 +41,39 @@ GEM
jekyll-paginate (1.1.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-sass-converter (2.1.0)
jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
json (2.3.1)
json (2.6.2)
json-minify (0.0.3)
json (> 0)
kramdown (2.3.1)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
libv8 (3.16.14.19)
liquid (4.0.3)
listen (3.2.1)
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
rb-fsevent (0.10.4)
public_suffix (5.0.0)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
ref (2.0.0)
rexml (3.2.5)
rouge (3.21.0)
rouge (3.30.0)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
terminal-table (1.8.0)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
therubyracer (0.12.3)
libv8 (~> 3.16.14.15)
ref
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (1.7.0)
unicode-display_width (1.8.0)
webrick (1.7.0)
PLATFORMS
ruby
@ -87,7 +83,7 @@ DEPENDENCIES
jekyll-minifier
jekyll-paginate
jekyll-redirect-from
therubyracer
webrick
BUNDLED WITH
2.1.4

View file

@ -4,15 +4,21 @@
### Run Safing locally:
1. [Install docker](https://www.docker.com/get-started)
1. [Install Docker Desktop](https://www.docker.com/get-started)
2. Run
2. In Docker Desktop settings untick `Use Docker Compose V2` (We currently only support V1)
```
docker-compose up
```
3. Go to `Web` dir
3. Access the local version at http://localhost:4000
#### Known Bug In Docker: https://github.com/docker/for-mac/issues/6467
if you have problems with **chown permissions**, then you will need todo run this `rm -rf _site .sass-cache .jekyll-metadata .jekyll-cache` before `docker-compose up` every time.
4. Run `docker-compose up`
5. Access the local version at http://localhost:4000
### Auto refresh not working?!
You might be blocking javascript. `livereload` injects javascript to auto reload the page.
## Supporters

View file

@ -1,7 +1,7 @@
# to start the server just run
# docker-compose up
jekyll:
image: jekyll/jekyll
image: jekyll/jekyll:3
command: jekyll serve --watch --incremental --livereload --future
ports:
- 4000:4000