From 12c3f6a00605d59fdaff17c68cc78ee818d9d3d3 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 12 Aug 2021 10:55:35 +0300 Subject: [PATCH] local dev with sqlite, exposing port 8080 --- Dockerfile | 2 +- schema.graphql | 2 +- settings.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b3e9d136..2365f893 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM python:3.8 -EXPOSE 80 +EXPOSE 8080 RUN /usr/local/bin/python -m pip install --upgrade pip diff --git a/schema.graphql b/schema.graphql index 2cb59bf7..da718b3e 100644 --- a/schema.graphql +++ b/schema.graphql @@ -163,7 +163,7 @@ type Shout { published: DateTime # if there is no published field - it is not published replyTo: String # another shout tags: [String] # actual values - topics: [String] # topic-slugs + topics: [String] # topic-slugs, order has matter title: String versionOf: String visibleForRoles: [String] # role ids are strings diff --git a/settings.py b/settings.py index 191c2361..124750c0 100644 --- a/settings.py +++ b/settings.py @@ -1,9 +1,9 @@ from pathlib import Path 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_SECRET_KEY = "8f1bd7696ffb482d8486dfbc6e7d16dd-secret-key" JWT_LIFE_SPAN = 24 * 60 * 60 # seconds