From 7f0e3870c52c1e1d40ac95f853c11e46b4f1aa54 Mon Sep 17 00:00:00 2001 From: carmichaelong Date: Fri, 6 Jun 2025 10:06:10 -0700 Subject: [PATCH 1/2] enable dev deployment from any branch, limit main deployment to main branch --- .github/workflows/ecr-dev.yml | 1 + .github/workflows/ecr.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/ecr-dev.yml b/.github/workflows/ecr-dev.yml index 3bad708..08824d3 100644 --- a/.github/workflows/ecr-dev.yml +++ b/.github/workflows/ecr-dev.yml @@ -28,6 +28,7 @@ on: push: branches: - dev + workflow_dispatch: name: DEV ECS build & deployment diff --git a/.github/workflows/ecr.yml b/.github/workflows/ecr.yml index a494487..92fcf94 100644 --- a/.github/workflows/ecr.yml +++ b/.github/workflows/ecr.yml @@ -29,6 +29,8 @@ on: branches: - main workflow_dispatch: + branches: + - main name: PRODUCTION ECS build & deployment From 2990c35c9116abdbd9a0a123042441ecf2852eb1 Mon Sep 17 00:00:00 2001 From: carmichaelong Date: Fri, 15 Aug 2025 16:06:33 -0700 Subject: [PATCH 2/2] use config() for secret_key --- mcserver/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcserver/settings.py b/mcserver/settings.py index 0ced436..0d84548 100644 --- a/mcserver/settings.py +++ b/mcserver/settings.py @@ -22,7 +22,7 @@ # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'iw8ctf3)6e-6e#$&eoou-sqawdm4p(1+*#8tsdqy+6+tx=nlt$' +SECRET_KEY = config("SECRET_KEY") # SECURITY WARNING: don't run with debug turned on in production! DEBUG = config("DEBUG", default=False, cast=bool) @@ -304,4 +304,4 @@ def strip_sensitive_data(event, hint): GRAPH_MODELS ={ 'all_applications': True, 'graph_models': True, -} \ No newline at end of file +}