Update postgres example README with new bootstrap.

pull/207/head
Chris McCormick 2021-09-23 12:43:59 +08:00
rodzic 72cb7a9b16
commit e9e8c7cdc1
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -4,10 +4,11 @@ This is a simple Piku app to demonstrate deploying a Postgres backed Django app.
During the `release` worker phase this app creates a Postgres database, as well as running the Django `collectstatic` and `migrate` tasks. The `release` worker will use the domain name (`NGINX_SERVER_NAME`) for the database name and the Django app assumes this in [settings.py](pikudjango/settings.py), so make sure you set the config variable to specify a domain name. See below for instructions.
In order for this to work you will first need to install `postgresql` on your Piku server. You can do this with the bootstrap script:
In order for this to work you will first need to install `postgresql` on your Piku server. You can do this with the [bootstrap script](https://github.com/piku/piku-bootstrap):
```shell
piku-bootstrap root@myserver.net postgres.yml
ssh root@my-piku-server
./piku-bootstrap postgres.yml
```
To publish this app to `piku`, make a copy of this folder and run the following commands inside the copy: