asattelmaier / website

Snap proxy server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Website

Prerequisites

  • ghc == 9.4.4
  • cabal >= 1.10
  • gcloud

Build

cabal build

Run

cabal run

Docker

Build

# Docker Hub
docker image build -t asattelmaier/website:latest -f docker/Dockerfile .
# Google Cloud
docker image build -t eu.gcr.io/PROJECT_ID/website:latest -f docker/Dockerfile .

Run

docker run -p 8000:8000 --name website asattelmaier/website:latest

Push

# Docker Hub
docker push asattelmaier/website:latest
# Google Cloud
docker push eu.gcr.io/PROJECT_ID/website:latest

Update GHC Version

When updating the GHC version in the project, make sure to follow these steps:

  1. Update the ghc-version field in the GitHub workflows.

    • Open the build.yaml file located in the .github/workflows directory.
    • Locate the ghc-version field and update it with the desired GHC version.
  2. Update the Prerequisites section in the README.md file.

    • Open the README.md file.
    • Locate the Prerequisites section.
    • Update the GHC version mentioned in the prerequisites to reflect the newly installed GHC version.

About

Snap proxy server

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:HTML 58.3%Language:Haskell 23.3%Language:Shell 9.4%Language:CSS 4.7%Language:Dockerfile 4.4%