Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 775 Bytes

README.md

File metadata and controls

31 lines (26 loc) · 775 Bytes

Discepto

A debate/discussion platform.

Build instructions

Dependencies

You need

  • go
  • postgresql
  • make (to build the release binary)
git clone $repo_url
cd $repo_url

# To run:
# When developing locally, set DEBUG to true.
# Pass the correct database creds
export DISCEPTO_DATABASE_URL="postgres://postgres:passwdpost@localhost/discepto?sslmode=disable"
go run cmd/discepto/main.go start

# To build release:
make release

Environment variables

DISCEPTO_DEBUG: when `true`, always reload html templates, improve debugging/logging
DISCEPTO_DATABASE_URL: for example "postgres://user:password@localhost/database"
DISCEPTO_PORT: Discepto will open and listen on this TCP port. Default is 23495
DISCEPTO_SESSION_KEY: Key used to sign cookies