From 5ce6834004ad0da420c4c0f175c46765e2967252 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Sat, 11 Aug 2018 23:36:48 +0200 Subject: Add setup instructions. --- SETUP.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 SETUP.md (limited to 'SETUP.md') diff --git a/SETUP.md b/SETUP.md new file mode 100644 index 00000000..93a9d193 --- /dev/null +++ b/SETUP.md @@ -0,0 +1,11 @@ +# Setting up & running up the website locally +*to be put on the wiki* + +- `pipenv sync` +- `psql -c 'CREATE USER pysite;'` +- `psql -c 'CREATE DATABASE pysite OWNER pysite;'` +- `echo 'DEBUG=1' >> .env` +- `echo 'DATABASE_URL=postgres://pysite:@localhost/pysite' >> .env` +- `pipenv shell` +- `python manage.py migrate` +- `python manage.py runserver` -- cgit v1.2.3