X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.github%2FCONTRIBUTING.md;h=75557865e6fce920b3aac049e7af3abaa2acabb4;hb=652d386e4b03af7f05057101cda75e523e6cf108;hp=4bc590bde988d9cbaa1aa58e0ca75edf11fb0a81;hpb=c3f05e413ebae6f9071a47f2b23e783dd073e48e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 4bc590bde..75557865e 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -116,6 +116,9 @@ $ sudo -u postgres psql -c "CREATE EXTENSION pg_trgm;" peertube_dev $ sudo -u postgres psql -c "CREATE EXTENSION unaccent;" peertube_dev ``` +Peertube also requires a running redis server, no special setup is needed for +this. + In dev mode, administrator username is **root** and password is **test**. ### Online development @@ -216,7 +219,19 @@ Instance configurations are in `config/test-{1,2,3}.yaml`. To test emails with PeerTube: * Run [mailslurper](http://mailslurper.com/) - * Run PeerTube using mailslurper SMTP port: `NODE_CONFIG='{ "smtp": { "hostname": "localhost", "port": 2500, "tls": false } }' NODE_ENV=test npm start` + * Run PeerTube using mailslurper SMTP port: `NODE_CONFIG='{ "smtp": { "hostname": "localhost", "port": 2500, "tls": false } }' NODE_ENV=dev node dist/server` + +### Environment variables + +PeerTube can be configured using environment variables. +See the list on https://docs.joinpeertube.org/maintain-configuration?id=environment-variables + +Additionally to these ones, we provide some environment for dev/test purpose: + + * `PRODUCTION_CONSTANTS=true`: in `NODE_ENV=dev` or `NODE_ENV=test` PeerTube customizes some constants. To prevent this behaviour, you can set `PRODUCTION_CONSTANTS` env to + `true` + * `PEERTUBE_LOCAL_CONFIG`: directory to find the local configuration file (used by web admin) + * `NODE_DB_LOG=false`: disable SQL request logging ## Plugins & Themes