From 7996ec9bca28ba835b1576077ace5ebac4419c6f Mon Sep 17 00:00:00 2001 From: Jess Robinson Date: Sat, 24 Aug 2024 12:23:55 +0100 Subject: [PATCH] Add Makefile and README info for non-docker devs --- Makefile | 7 +++++++ README.md | 10 ++++++++++ 2 files changed, 17 insertions(+) diff --git a/Makefile b/Makefile index 66a9b79..8fdcd3d 100644 --- a/Makefile +++ b/Makefile @@ -15,3 +15,10 @@ shell: deploy: docker build . -f ./Dockerfile.prod -t ukhackspacefoundation/website:latest docker push ukhackspacefoundation/website:latest + +nd_deps: + poetry install --no-root + +nd_run: + poetry run ./manage.py migrate + DJANGO_SETTINGS_MODULE=hsf.dev_settings poetry run ./manage.py runserver 0.0.0.0:8000 diff --git a/README.md b/README.md index bad9a15..fa66d60 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,16 @@ To update all dependencies to their latest versions: Once you've updated dependencies, you'll need to rebuild the Docker image by re-running `docker compose up --build` (you don't need to run `docker compose down`). +## Installing & Running without docker + +To install dependencies locally, use: + + $ make nd_deps + +To run the website on port 8000: + + $ make nd_run + # Deployment See [docs/deployment.md](docs/deployment.md) for deployment info.