Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

JulianKominovic/wallpis

Repository files navigation

Og (2)

Development

Requisites

  • Go
  • Homebrew
  • Cross compiler gcc
brew tap SergioBenitez/osxct
brew install x86_64-unknown-linux-gnu

Environment variables

TELEGRAM_BOT_TOKEN=...
TELEGRAM_CHAT_ID=...
STATS_ROUTE=...

Deploy instructions

  1. Run pnpm run build (compiles go binary & compile tailwind css file)
  2. Stop active process running on VPS
  3. Do a git pull in VPS machine
  4. Copy binary file to VPS machine
scp -r ./main <user>@<ip>:<location>
  1. Run binary file (don't forget to load env vars)

References