Code Monkey home page Code Monkey logo

opfab.github.io's Introduction

README

This repository holds the source for the website of the OperatorFabric project, opfab.github.io.

To serve this website locally using the Jekyll Docker image, run the following commands:

git clone https://github.com/opfab/opfab.github.io.git
cd opfab.github.io
./docker-compose.sh

This will set the appropriate environment variables and launch the docker-compose in detached mode. The first time, this can take a while as all the necessary gems are downloaded. You can monitor the progress of this process using the docker logs command:

docker logs opfab_website
Note
You can either run this command every time you want latest logs or use the --follow options for the logs to refresh automatically.

After a while, you should see the following content in the logs

Configuration file: /srv/jekyll/_config.yml
Source: /srv/jekyll
Destination: /srv/jekyll/_site
Incremental build: disabled. Enable with --incremental
Generating...
Jekyll Feed: Generating feed for posts
done in 5.191 seconds.
Auto-regeneration: enabled for '/srv/jekyll'
Server address: http://0.0.0.0:4000/
Server running... press ctrl-c to stop.

You should then be able to see the website at the following URL : localhost:4000.

To stop the serve, run:

docker-compose stop

This will stop the container but not remove it. This way, the gems won’t need to be downloaded again next time. Next time you need to serve the site, just run:

./docker-compose.sh
Important
The behaviour regarding changes is just the same as with a regular jekyll serve: changes made to the website source files will be taken into account on the fly but changes to the config.yml file for example will require a restart.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.