Skip to content

ehassett/ethanhassett

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ethanhassett.com

Release

Repo for https://ethanhassett.com

Contents

Contributing

Development

Make sure you're using the versions in the .tool-versions files in both app and infrastructure.

Deployment

The deployment process follows GitHub Flow.

When code is merged to main:

  1. Any changes to the app will trigger a new tag and release based off of the version in package.json.
  2. A Docker image is created with the new version.
  3. Infrastructure changes are deployed via Spacelift.

Testing

To test changes to the application with Astro only:

  1. Run cd app && npm run dev.
  2. Navigate to localhost:4321 in your browser.
  3. Verify things are running properly and there are no Astro warnings.

To test changes with Docker:

  1. Build the Docker image locally by running docker build --tag ethanhassett:test ..
  2. Run the container with:
docker run --detach \
  --name ethanhassett.com \
  --publish 80:4321 \
  ethanhassett:test
  1. Navigate to localhost in your browser.
  2. Verify things are running properly.
  3. (Optional) Stop the container and cleanup with:
docker stop ethanhassett.com && \
  docker container rm ethanhassett.com && \
  docker image rm ethanhassett:test