Skip to content

Staging

Carlos Campoy edited this page May 2, 2024 · 6 revisions

Follow this guide to create a staging environment.

A staging environment is a controlled, production-like space used to test software changes before they go live.

Setup Guide

1. Clone, Fork, Set Origin

  • Clone the meetup repo git clone https://github.com/astoria-tech/meetup.git
  • Fork the repo. For this example we've named the fork "meetup"
  • Set a new git origin to your personal repo git remote add personal https://github.com/YOUR-GITHUB-USERNAME/meetup.git

2. Enable Actions

3. Set up Secrets

  • In your Github, go to your forked "meetup" repo (or whichever name you've used for the fork)
  • Navigate to Settings
  • Click on Secrets and variables in the Security section, then Actions
  • Click on New repository secret, and create repository secrets for ASTRO_CONFIG_SITE and ASTRO_CONFIG_BASE
Secret 1
Name: ASTRO_CONFIG_SITE
Secret: https://YOUR-GITHUB-USERNAME.github.io
Secret 2
Name: ASTRO_CONFIG_BASE
Secret: /meetup

4. Push & PR

  • Push changes to your personal fork
  • Create PR explaining the changes, a screenshot if applicable, and a URL to the page that should be reviewed

References

Astro Config
Repository Secrets