Git Product home page Git Product logo

parallel-in-time.github.io's Introduction

How to setup the project for local development

I. Requirements

II. Run the local development

Install all dependencies

We use docker to prevent version and system differences. So please, especially if you are a mac user, use the docker container.

Run this in your console to update your dependencies

docker-compose -f docker-compose-bundle.yml up

Start the live preview of the page

Note: The live reload of jekyll is not perfect. Therefore, don't expect it to work as intended. Sometimes, you need to re-run the command in order to see the newest changes.

Run this in your console to start the local preview

docker-compose up

III. Troubleshooting

If the live preview fails and you don't know the cause, follow these steps:

  1. You installed the dependencies in the past

    Chances are that the dependencies are not compatible if you once installed the dependencies a long time ago.

    Steps to fix it:

    • delete vendor folder
    • delete Gemfile.lock folder
    • re-install dependencies
  2. Your ports are already used by an other program

    If you are running another program that requires either port 4000 or port 35729, the preview will fail.

    Steps to fix it:

    • either close the program(s) that need(s) the port(s)
    • or specify another port

    If you want to specify another port go to the docker compose file, append one of the args to the bash script that the docker container will run:

    • --port [YOUR PORT] (the port where the page is accessible at)
    • --livereload-port [YOUR PORT] (the port where the live reload script is accessible at)

    โ†’ append the arg(s) to the bash command:

     ... && bundle exec jekyll serve --livereload --host=0.0.0.0 --port=[PORT] --livereload-port=[PORT]
  3. You decided not to run it in the docker container

    If you did, then please run it in the container.

  4. Other causes

    If you tried every troubleshooting method and none of them worked: We are sorry, but you need to find the error by your own.

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.