Skip to content

Conversation

@Jan0707
Copy link
Contributor

@Jan0707 Jan0707 commented Feb 15, 2024

Staging

The staging branch is used to build the programmierbar/cms:staging docker image which is then used to deploy the staging environment at Digital Ocean.

The staging environment does however use the same database as the production system. Please be aware that any change made to the staging system will also be reflected on the production system.

Changes

  • Added a environment variable to direcuts / CMS to determine current environment (needs to be set in Digital Ocean after merge!)

  • Added a check to some hooks to prevent running in non-production environments.

    • Disabled hooks: buzzsproutApi, deployWebsite, podcastTranscription, schedulePublication
    • (deployWebsite could later be adjusted to run in staging as well, but only to deploy staging frontend)
    • Enabled hooks: setSlug, setPublishedOn, setPickOfTheDayImage (because they are all used when editing items in the CMS)
  • Added failsafe behavior to buzzsprout hook so that episodes are not unintentionally published twice (once from production and once from staging). Just clear the BUZZSPROUT_API_TOKEN environment variable and the hook will fail gracefully, yet log all the data that would have been transmitted (for review/debugging).

  • Made some of the nuxt apps configuration in nuxt-app/config.ts configurable via environment variables instead of hard coded values. This way, we should be able to connect the app to our staging backend/cms on demand in Vercel's preview environments.

Outstanding

@Jan0707 Jan0707 self-assigned this Feb 15, 2024
@vercel
Copy link

vercel bot commented Feb 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
programmierbar-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 16, 2024 2:13pm

…nnected to our staging environment on demand.
@fabifink
Copy link
Contributor

Was ist denn mit setSlug und setPickOfTheDayImage? Das würde ich auch deaktivieren.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants