Skip to content

jpchip/mylifeintheservice

Repository files navigation

Logo of the project

My Life in the Service

The diary of levi chapiewsky

This is a Gatsby version of https://mylifeintheservice.wordpress.com.

This project was cloned from Gatsby v2 WordPress Starter

Installing / Getting started

Uses docker. Copy .env.example to .env.

docker-compose up -d

Gatsby will start a hot-reloading development environment accessible by default at localhost:8000.

Try editing the JavaScript pages in src/components. Saved changes will live reload in the browser.

Note: You'll also see a second link: http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

Testing Production Builds Locally

To test a production build locally, run:

docker-compose -f docker-compose-prod.yml up -d

This will build and launch a web server hosting at http://localhost:9000

Note: When switching back and forth between the local dev and prod builds, if you see docker errors complaining about the network not being found, try running the docker-compose down command before switching.