WeilonYing / compclub-web

CompClub website project for UNSW CSESoc
https://csesoc.unsw.edu.au
0 stars 0 forks source link
compclub csesoc unsw

compclub-web

Development

Install Dependencies

pipenv install
npm install -g sass

Initialize Database

pipenv run python manage.py migrate

Compile your CSS

cd website/static/website
sass style.scss style.css --style compressed

Run the server

pipenv run python manage.py runserver

This will start a development server with automatic reloading on code changes

Deploying

The app is built using Docker. The container has the following attributes:

Volumes:

Ports:

The container exposes the server on port 8080.

Environment:

You must provide the following environment variables

Run the container

docker run --rm -it --name compclub-web -p 8080:8080 \
  -v $PWD/data:/data \
  -e SECRET_KEY="replaceme" \
  csesoc/compclub-web

Building the Docker Container

# Build the container
docker build -t csesoc/compclub-web .

# Push the container
docker push csesoc/compclub-web