From 8eff1607e5359cd4012dcc2278aa8b2cf91b1aa4 Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Tue, 30 Jul 2024 14:05:42 -0500 Subject: [PATCH] Move production deployment targets to boxel.ai (#1450) --- .github/workflows/build-host.yml | 10 ++++---- .github/workflows/deploy-host.yml | 2 +- .github/workflows/pr-boxel-host.yml | 16 ++++++------- .../realm-server/scripts/start-production.sh | 24 +++++++++---------- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build-host.yml b/.github/workflows/build-host.yml index bc00ac01fd..850d4ffc61 100644 --- a/.github/workflows/build-host.yml +++ b/.github/workflows/build-host.yml @@ -25,11 +25,11 @@ jobs: INPUT_ENVIRONMENT: ${{ inputs.environment }} run: | if [ "$INPUT_ENVIRONMENT" = "production" ]; then - echo "OWN_REALM_URL=https://realms.cardstack.com/drafts/" >> $GITHUB_ENV - echo "OTHER_REALM_URLS=https://realms.cardstack.com/published/" >> $GITHUB_ENV - echo "RESOLVED_BASE_REALM_URL=https://realms.cardstack.com/base/" >> $GITHUB_ENV - echo "MATRIX_URL=https://matrix.cardstack.com" >> $GITHUB_ENV - echo "MATRIX_SERVER_NAME=matrix.cardstack.com" >> $GITHUB_ENV + echo "OWN_REALM_URL=https://app.boxel.ai/drafts/" >> $GITHUB_ENV + echo "OTHER_REALM_URLS=https://app.boxel.ai/published/" >> $GITHUB_ENV + echo "RESOLVED_BASE_REALM_URL=https://app.boxel.ai/base/" >> $GITHUB_ENV + echo "MATRIX_URL=https://matrix.boxel.ai" >> $GITHUB_ENV + echo "MATRIX_SERVER_NAME=boxel.ai" >> $GITHUB_ENV echo "EXPERIMENTAL_AI_ENABLED=true" >> $GITHUB_ENV elif [ "$INPUT_ENVIRONMENT" = "staging" ]; then echo "OWN_REALM_URL=https://realms-staging.stack.cards/drafts/" >> $GITHUB_ENV diff --git a/.github/workflows/deploy-host.yml b/.github/workflows/deploy-host.yml index f464921f95..017e7b310a 100644 --- a/.github/workflows/deploy-host.yml +++ b/.github/workflows/deploy-host.yml @@ -30,7 +30,7 @@ jobs: if [ "$INPUT_ENVIRONMENT" = "production" ]; then echo "AWS_ROLE_ARN=arn:aws:iam::120317779495:role/boxel-host" >> $GITHUB_ENV echo "AWS_S3_BUCKET=cardstack-boxel-host-production" >> $GITHUB_ENV - echo "AWS_CLOUDFRONT_DISTRIBUTION=E2DDEHLJXF5LQ8" >> $GITHUB_ENV + echo "AWS_CLOUDFRONT_DISTRIBUTION=EIY7A542TLTVQ" >> $GITHUB_ENV elif [ "$INPUT_ENVIRONMENT" = "staging" ]; then echo "AWS_ROLE_ARN=arn:aws:iam::680542703984:role/boxel-host" >> $GITHUB_ENV echo "AWS_S3_BUCKET=cardstack-boxel-host-staging" >> $GITHUB_ENV diff --git a/.github/workflows/pr-boxel-host.yml b/.github/workflows/pr-boxel-host.yml index 8384524883..651e16035d 100644 --- a/.github/workflows/pr-boxel-host.yml +++ b/.github/workflows/pr-boxel-host.yml @@ -86,16 +86,16 @@ jobs: - name: Deploy boxel-host preview uses: ./.github/actions/deploy-ember-preview env: - OWN_REALM_URL: https://realms.cardstack.com/drafts/ - OTHER_REALM_URLS: https://realms.cardstack.com/published/ - RESOLVED_BASE_REALM_URL: https://realms.cardstack.com/base/ - MATRIX_URL: https://matrix.cardstack.com - MATRIX_SERVER_NAME: matrix.cardstack.com + OWN_REALM_URL: https://app.boxel.ai/drafts/ + OTHER_REALM_URLS: https://app.boxel.ai/published/ + RESOLVED_BASE_REALM_URL: https://app.boxel.ai/base/ + MATRIX_URL: https://matrix.boxel.ai + MATRIX_SERVER_NAME: boxel.ai EXPERIMENTAL_AI_ENABLED: true - S3_PREVIEW_BUCKET_NAME: boxel-host-preview.cardstack.com - AWS_S3_BUCKET: boxel-host-preview.cardstack.com + S3_PREVIEW_BUCKET_NAME: boxel-host-preview.boxel.ai + AWS_S3_BUCKET: boxel-host-preview.boxel.ai AWS_REGION: us-east-1 - AWS_CLOUDFRONT_DISTRIBUTION: E1JS2AYUPFW775 + AWS_CLOUDFRONT_DISTRIBUTION: E2PZR9CIAW093B with: package: boxel-host environment: production diff --git a/packages/realm-server/scripts/start-production.sh b/packages/realm-server/scripts/start-production.sh index 2e224bdef0..bcd9cb49ec 100755 --- a/packages/realm-server/scripts/start-production.sh +++ b/packages/realm-server/scripts/start-production.sh @@ -9,27 +9,27 @@ NODE_NO_WARNINGS=1 \ --port=3000 \ \ --path='/persistent/base' \ - --matrixURL='https://matrix.cardstack.com' \ + --matrixURL='https://matrix.boxel.ai' \ --username='base_realm' \ --password=${BASE_REALM_PASSWORD} \ - --distURL='https://boxel-host.cardstack.com' \ + --distURL='https://boxel-host.boxel.ai' \ --fromUrl='https://cardstack.com/base/' \ - --toUrl='https://realms.cardstack.com/base/' \ + --toUrl='https://app.boxel.ai/base/' \ \ --path='/persistent/drafts' \ - --matrixURL='https://matrix.cardstack.com' \ + --matrixURL='https://matrix.boxel.ai' \ --username='drafts_realm' \ --password=${DRAFTS_REALM_PASSWORD} \ - --fromUrl='https://realms.cardstack.com/drafts/' \ - --toUrl='https://realms.cardstack.com/drafts/' \ + --fromUrl='https://app.boxel.ai/drafts/' \ + --toUrl='https://app.boxel.ai/drafts/' \ \ --path='/persistent/published' \ - --matrixURL='https://matrix.cardstack.com' \ + --matrixURL='https://matrix.boxel.ai' \ --username='published_realm' \ --password=${PUBLISHED_REALM_PASSWORD} \ - --fromUrl='https://realms.cardstack.com/published/' \ - --toUrl='https://realms.cardstack.com/published/' \ + --fromUrl='https://app.boxel.ai/published/' \ + --toUrl='https://app.boxel.ai/published/' \ --fromUrl='https://cardstack.com/base/' \ - --toUrl='https://realms.cardstack.com/base/' \ - --fromUrl='https://realms.cardstack.com/base/' \ - --toUrl='https://realms.cardstack.com/base/' + --toUrl='https://app.boxel.ai/base/' \ + --fromUrl='https://app.boxel.ai/base/' \ + --toUrl='https://app.boxel.ai/base/'