local dev with sqlite, exposing port 8080
This commit is contained in:
parent
fbb8a0e93d
commit
12c3f6a006
|
@ -1,6 +1,6 @@
|
||||||
FROM python:3.8
|
FROM python:3.8
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 8080
|
||||||
|
|
||||||
RUN /usr/local/bin/python -m pip install --upgrade pip
|
RUN /usr/local/bin/python -m pip install --upgrade pip
|
||||||
|
|
||||||
|
|
|
@ -163,7 +163,7 @@ type Shout {
|
||||||
published: DateTime # if there is no published field - it is not published
|
published: DateTime # if there is no published field - it is not published
|
||||||
replyTo: String # another shout
|
replyTo: String # another shout
|
||||||
tags: [String] # actual values
|
tags: [String] # actual values
|
||||||
topics: [String] # topic-slugs
|
topics: [String] # topic-slugs, order has matter
|
||||||
title: String
|
title: String
|
||||||
versionOf: String
|
versionOf: String
|
||||||
visibleForRoles: [String] # role ids are strings
|
visibleForRoles: [String] # role ids are strings
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from os import environ
|
from os import environ
|
||||||
|
|
||||||
PORT = 80
|
PORT = 8080
|
||||||
|
|
||||||
DB_URL = environ.get("DB_URL") or "postgresql://postgres:postgres@localhost/discours"
|
DB_URL = environ.get("DB_URL") or "sqlite:///database.sqlite3"
|
||||||
JWT_ALGORITHM = "HS256"
|
JWT_ALGORITHM = "HS256"
|
||||||
JWT_SECRET_KEY = "8f1bd7696ffb482d8486dfbc6e7d16dd-secret-key"
|
JWT_SECRET_KEY = "8f1bd7696ffb482d8486dfbc6e7d16dd-secret-key"
|
||||||
JWT_LIFE_SPAN = 24 * 60 * 60 # seconds
|
JWT_LIFE_SPAN = 24 * 60 * 60 # seconds
|
||||||
|
|
Loading…
Reference in New Issue
Block a user