aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-18 22:38:54 +0200
committerGravatar Johannes Christ <[email protected]>2018-09-18 22:38:54 +0200
commit69252ab72ba5169a5b137139c427e2438583c117 (patch)
treea54dda8dc550094c83d0f856a08ef55466af3047 /docs
parentUpdate changelog & contributing guidelines, bump version. (diff)
Reorder headers.
Diffstat (limited to 'docs')
-rw-r--r--docs/setup.md30
1 files changed, 15 insertions, 15 deletions
diff --git a/docs/setup.md b/docs/setup.md
index 16b27045..16fb44d3 100644
--- a/docs/setup.md
+++ b/docs/setup.md
@@ -2,21 +2,6 @@
Setting up the Python site for local development is quick and easy using `pip`.
Alternatively, you can set it up using Docker. Both of these methods are documented here.
-## Development with Docker
-To quickly set up the site locally, you can use Docker.
-You will need Docker itself and `docker-compose` - you can omit the latter if you want to
-use PostgreSQL on your host. Refer to the docker documentation on how to install Docker.
-
-If you want to set the site up using `docker-compose`, simply run
-```sh
-$ docker-compose up
-```
-and it will do its magic.
-
-Otherwise, you need to set a bunch of environment variables (or pass them along to
-the container). You will also need to have a running PostgreSQL instance if you want
-to run on your host's PostgreSQL instance.
-
## PostgreSQL setup
Install PostgreSQL according to its documentation. Then, create databases and users:
```sql
@@ -34,6 +19,21 @@ $ export DATABASE_URL=postgres://pysite@localhost/pysite
A simpler approach to automatically configuring this might come in the
near future - if you have any suggestions, please let us know!
+## Development with Docker
+To quickly set up the site locally, you can use Docker.
+You will need Docker itself and `docker-compose` - you can omit the latter if you want to
+use PostgreSQL on your host. Refer to the docker documentation on how to install Docker.
+
+If you want to set the site up using `docker-compose`, simply run
+```sh
+$ docker-compose up
+```
+and it will do its magic.
+
+Otherwise, you need to set a bunch of environment variables (or pass them along to
+the container). You will also need to have a running PostgreSQL instance if you want
+to run on your host's PostgreSQL instance.
+
## Development with `pip`
This is the recommended way if you wish to quickly test your changes and don't want