pfwd / peterfisher

The portfolio site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Peter Fisher

Deployment

  1. Clean the local build gatsby clean
  2. Build the site locally gatsby build
  3. Create a .env file in /bin/ with the following variables
SERVER=<SERVER_HOST_FROM_SSH_CONFIG>
SERVER_PATH="/absolute/path/to/website/on/remote/host"
RELEASE_PATH=/releases
CURRENT_PATH=/current
SLIDE_PATH=/slides
LOCAL_TALK_PATH=/local/path/to/slides.html
LOCAL_PATH=/local/path/to/build
  1. Change to bin folder cd bin
  2. Export env variables export $(grep -v '^#' .env | xargs -0)
  3. Run deployment script ./deploy.sh

gatsby clean && gatsby build && ./bin/deploy.sh

Commands

Run prettier

Runs prettier using the .prettierrc config. It will output all the errors that need to be fixed.

npm run prettier

Fix prettier errors

Attempts to fix issues found by prettier using the .prettierrc config.

npm run fix-prettier

Run ESLint

Runs ESLint using the .eslint.json config. It will output all the errors that need to be fixed.

npm run lint

Run all test commands

Runs TypeScript checks, prettier and ESLint.

npm run test

About

The portfolio site

License:MIT License


Languages

Language:HTML 90.8%Language:TypeScript 5.5%Language:JavaScript 2.0%Language:CSS 1.6%Language:Shell 0.1%