port-fix
Some checks failed
Deploy to core / deploy (push) Failing after 6s

This commit is contained in:
Untone 2024-02-21 23:14:06 +03:00
parent 750f00c6ac
commit 8d06f59702
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
from granian.constants import Interfaces
from granian.server import Granian
from services.logger import root_logger as logger
from settings import PORT
if __name__ == '__main__':
logger.info('started')
@ -8,7 +10,7 @@ if __name__ == '__main__':
granian_instance = Granian(
'main:app',
address='0.0.0.0', # noqa S104
port=8000,
port=PORT,
threads=4,
websockets=False,
interface=Interfaces.ASGI,

View File

@ -1,7 +1,7 @@
import sys
from os import environ
PORT = 8080
PORT = 8000
DB_URL = (
environ.get('DATABASE_URL', '').replace('postgres://', 'postgresql://')
or environ.get('DB_URL', '').replace('postgres://', 'postgresql://')