example updated
This commit is contained in:
parent
117a716b1b
commit
3776e2bcdf
|
@ -12,10 +12,9 @@ $ docker run --rm -p 8000:8000 DarrenOfficial/dpaste:latest
|
|||
|
||||
The dpaste image serves the project using uWSGi and is ready for production-like environments. However it’s encouraged to use an external database to store the data. See the example below for all available options, specifically `DATABASE_URL`:
|
||||
```bash
|
||||
$ docker run --rm --name db1 --detach postgres:latest
|
||||
$ docker run --rm -p 12345:12345 \
|
||||
--link db1 \
|
||||
-e DATABASE_URL=postgres://postgres@db1:5432/postgres \
|
||||
-e DATABASE_URL=postgres://dpaste:supersecureposgrespassword@127.0.0.1:5432/postgres \
|
||||
-e DEBUG=True \
|
||||
-e SECRET_KEY=super-secure-key \
|
||||
-e PORT=12345 \
|
||||
|
@ -112,4 +111,4 @@ After compilation the CSS and JS files are stored in `dpaste/static/` where they
|
|||
|
||||
!!! note "Note"
|
||||
|
||||
These files are not commited to the project repository, however they are part of the pypi wheel package, since users couldn’t compile those once they are within Python’s site-packages.
|
||||
These files are not commited to the project repository, however they are part of the pypi wheel package, since users couldn’t compile those once they are within Python’s site-packages.
|
||||
|
|
Loading…
Reference in New Issue