hlkean / portfolio

0 stars 0 forks source link

Set up dev and prod environment #8

Closed hlkean closed 3 hours ago

hlkean commented 3 hours ago

Amplify allows you to have branch-based environments. I want to set up at least a dev/test environment and production. Currently I have a production only environment tracked to my main branch.

Given a dev When I merge into 'dev' branch Then the code is built to the dev environment

Given a dev When I merge into 'main' or release/** branch Then the code is built to the prod environment

Given a user When I run the application in the dev environment Then the app runs using the dev env variables

Given a user When I run the application in the prod environment Then the app runs using the prod env variables

hlkean commented 3 hours ago

Currently using main branch for production, and dev branch for dev. May update to use release branches in the future, but for now, baby steps.