Skip to content

Latest commit

 

History

History
53 lines (30 loc) · 1.16 KB

README.md

File metadata and controls

53 lines (30 loc) · 1.16 KB

eGon project website

This repository contains the code for generating the site ego-n.org.

Build and serve the site locally

Both is possible, building the site with a local installation of Jekyll or containing Jekyll in a Docker container.

The site is served at http://localhost:4000 in both cases.

To work around Jekyll build errors, create to folders which are required

mkdir .jekyll-cache _site

Local installation

jekyll serve --watch

The flag --ẁatch sets Jekyll in autoreload mode. Whenever a file is changed, its changed are served immediately.

Docker container

docker run --rm -p 4000:4000 --volume="$PWD/vendor/bundle:/usr/loc/bundle" --volume="$PWD:/srv/jekyll" -it jekyll/jekyll:3.8 jekyll serve --watch

Deploy to webserver

Use the deploy script and deploy files from dev or production purpose. Deployment requires sufficient privileges on the webserver.

Development

...will be deployed to staging.ego-n.org with restricted access

./DEPLOY staging

Development

...will be deployed publicly accessible to ego-n.org

./DEPLOY productive