(backend repository) a notes/wiki write system.
Wood configure used Viper.
All configure options here. The prefie is WOOD_
name | Description | Default |
---|---|---|
IMAGE_DIR | store uploaded images place | ./upload |
DISABLE_SIGN_UP | disable sign up flag | true |
DB_HOST | database host | localhost |
DB_USER | databse user | |
DB_NAME | databse name | |
DB_PASSWD | databse passwd | |
EVENT_LOG_FILE | event log file path | ./wood-event.log |
DB_PASSWD | databse passwd |
- go get github.com/lib/pq
pq: function uuid_generate_v4() does not exist
you need grand pg user as SUPERUSER, or use SUPERUSER execute sql CREATE EXTENSION IF NOT EXISTS "uuid-ossp";