File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8686 --env DB_DSN='${{ secrets.DB_DSN }}' \
8787 --env ROOT_PATH='/rating' \
8888 --env AUTH_URL='https://api.test.profcomff.com/auth' \
89+ --env APP_ENV='test' \
8990 --env GUNICORN_CMD_ARGS='--log-config logging_test.conf' \
9091 --name ${{ env.CONTAINER_NAME }} \
9192 ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test
@@ -128,6 +129,7 @@ jobs:
128129 --env DB_DSN='${{ secrets.DB_DSN }}' \
129130 --env ROOT_PATH='/rating' \
130131 --env AUTH_URL='https://api.profcomff.com/auth' \
132+ --env APP_ENV='prod' \
131133 --env GUNICORN_CMD_ARGS='--log-config logging_prod.conf' \
132134 --name ${{ env.CONTAINER_NAME }} \
133135 ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class Settings(BaseSettings):
2828 CORS_ALLOW_HEADERS : list [str ] = ['*' ]
2929 MAX_COMMENT_LENGTH : int = 3000
3030 LOGGING_MARKETING_URL : str = LOGGING_MARKETING_URLS .get (
31- os .getenv ("APP_VERSION " , "dev" ), LOGGING_MARKETING_URLS ["test" ]
31+ os .getenv ("APP_ENV " , "dev" ), LOGGING_MARKETING_URLS ["test" ]
3232 )
3333
3434 '''Temp settings'''
You can’t perform that action at this time.
0 commit comments