Skip to content

readme.md: missing informations about env file

I do a git clone of the project. Tryed to run "npm start" as proposed in the readme But got an error about a missing .env.development file

Therefore, we should have here instructions about how to create .env.developpement file What's inside, and probably defaults values to make it work in a development environment

I tried to use this env_file (coming from production environment) but the error is : Environment file has incorrect format or contains empty values.

It seems that we should update env.sh in order to ignore empty lines, and commented lines (starting with #)

# Main
ROOT_URL=https://localhost

# Keycloak
KC_HOSTNAME=$ROOT_URL/keycloak
KC_REALM=in-sylva
OAUTH2_ISSUER_URL=$KC_HOSTNAME/realms/$KC_REALM
OAUTH2_CLIENT_ID=in-sylva.user.app
OAUTH2_CLIENT_SECRET=O5igbRB7R2JLMKLv2meXDwBJ802Hd1MZ

# Credentials
DEFAULT_ADMIN_USER=insylva_admin_pg
DEFAULT_ADMIN_PASSWORD=v2kGBDUaGjXK2VuPyf5R64VS
PGADMIN_USER=$DEFAULT_ADMIN_USER@insylva.fr
POSTGRES_USERNAME=$DEFAULT_ADMIN_USER
POSTGRES_PASSWORD=$DEFAULT_ADMIN_PASSWORD
ELASTIC_PASSWORD=$DEFAULT_ADMIN_PASSWORD
KIBANA_PASSWORD=$DEFAULT_ADMIN_PASSWORD

# Postgres
PG_DATABASE_URL=postgres://$POSTGRES_USERNAME:$POSTGRES_PASSWORD@postgres:5432/$KC_REALM

# Elastic
STACK_VERSION=8.16.1
CLUSTER_NAME=docker-cluster
ES_PORT=9200
KIBANA_PORT=5601
MEM_LIMIT=1073741824
MONGO_INITDB_DATABASE=$KC_REALM

# Search API
SEARCH_APP_ROOT_URL=$ROOT_URL/search-api

# Gatekeeper API
GATEKEEPER_APP_ROOT_URL=$ROOT_URL/gatekeeper

# Kibana
KIBANA_PUBLIC_URL=$ROOT_URL/kibana
Edited by Philippe Clastre