commit
b72af9745e
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -416,7 +416,7 @@ jobs:
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
staging:
|
staging:
|
||||||
name: Deploy to Staging
|
name: Deploy to Staging
|
||||||
if: ${{ !failure() && !cancelled() && (github.event.inputs.deploy == 'Staging Only' || github.event.inputs.deploy == 'Staging + Prod') }}
|
if: ${{ !failure() && !cancelled() && (github.event.inputs.deploy == 'Staging Only' || github.event.inputs.deploy == 'Staging + Prod' || github.ref_name == 'release') }}
|
||||||
needs: [prepare, release]
|
needs: [prepare, release]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment:
|
environment:
|
||||||
|
@ -441,7 +441,7 @@ jobs:
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
prod:
|
prod:
|
||||||
name: Deploy to Production
|
name: Deploy to Production
|
||||||
if: ${{ !failure() && !cancelled() && github.event.inputs.deploy == 'Staging + Prod' }}
|
if: ${{ !failure() && !cancelled() && (github.event.inputs.deploy == 'Staging + Prod' || github.ref_name == 'release') }}
|
||||||
needs: [staging]
|
needs: [staging]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -21,6 +21,7 @@ trap 'trap "" TERM; cleanup' TERM
|
||||||
|
|
||||||
# start gunicorn in the background so we can trap the TERM signal
|
# start gunicorn in the background so we can trap the TERM signal
|
||||||
gunicorn \
|
gunicorn \
|
||||||
|
-c /workspace/gunicorn.conf.py \
|
||||||
--workers "${DATATRACKER_GUNICORN_WORKERS:-9}" \
|
--workers "${DATATRACKER_GUNICORN_WORKERS:-9}" \
|
||||||
--max-requests "${DATATRACKER_GUNICORN_MAX_REQUESTS:-32768}" \
|
--max-requests "${DATATRACKER_GUNICORN_MAX_REQUESTS:-32768}" \
|
||||||
--timeout "${DATATRACKER_GUNICORN_TIMEOUT:-180}" \
|
--timeout "${DATATRACKER_GUNICORN_TIMEOUT:-180}" \
|
||||||
|
|
Loading…
Reference in a new issue