Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1003 Bytes

README.md

File metadata and controls

47 lines (38 loc) · 1003 Bytes

Gatsby Sync Example

Local build for dev

gatsby develop

to refresh local build:

curl -X POST http://localhost:8000/__refresh

To clean out any cache

gatsby clean

To build for production

NODE_ENV=production
gatsby build

Deploy to Netlify (for testing)

netlify deploy --dir=public --open

Run in Docker

docker build -f Dockerfile.dev -t agility-gatsby-dev .

docker run -p 80:80 --name agility-gatsby-dev agility-gatsby-dev
#{OR}
docker-compose up --build

Publish to Docker Container Registry

docker build -f Dockerfile.dev -t {containerRegistryUrl}/agility-gatsby-dev .
docker login -u {username} -p {password} {containerRegistryUrl}
docker push {containerRegistryUrl}/agility-gatsby-dev