MathSeminar.jl
June 18, 2020 ยท View on GitHub
MathSeminar.jl
- My website https://terasakisatoshi.github.io/MathSeminar.jl/ that utilizes Franklin.jl (>=v0.8)
How to build my page
Case1: using Julia
- Run the following command
$ julia --project=@.
julia> using Pkg; Pkg.instantiate()
julia> using Franklin; serve()
- You can see the result via your web browser via http://localhost:8000
Case2: using Docker container
- If you hesitate to create environment related to Julia. we recommend using Docker containers technique to create Julia's environment. You do not have to install Julia locally and keep clean your development environment.
- Install Docker and Docker Compose
- Run the following command:
$ make build
$ make web
which is almost same as
$ docker-compose build
$ docker-compose run --rm julia julia -e 'using Pkg; Pkg.instantiate()'
$ docker-compose up web
- It builds docker image, creates docker container, also initialize HTTP server inside of the docker container. You can see the result via your web browser via http://localhost:8000