kopia lustrzana https://github.com/piku/piku
Update postgres example README with new bootstrap.
rodzic
72cb7a9b16
commit
e9e8c7cdc1
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue