GitDeployHub

ashvwinn/snippetbox

github.com/ashvwinn/snippetbox ↗
Go
6 environment variables found in .env.example

Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.

  • MYSQL_ROOT_PASSWORD secret MySQL environment variables for Docker Compose
  • MYSQL_DATABASE
  • MYSQL_USER
  • MYSQL_PASSWORD secret
  • SNIPPETBOX_DB_DSN MySQL DSN Ex: user:password@tcp(localhost:3306)/snippetbox?parseTime=true
  • SNIPPETBOX_DB_DSN_MIGRATE MySQL DSN for 'migrate' cli Ex: mysql://user:password@tcp(localhost:3306)/snippetbox?parseTime=true
Best match Fly.io Anything Dockerized — requires the Fly CLI.
macOS
brew install flyctl && fly launch --from https://github.com/ashvwinn/snippetbox
Linux
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/ashvwinn/snippetbox
Windows (PowerShell)
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/ashvwinn/snippetbox
Or deploy to a different host
← Try another repo