-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env-sample
42 lines (31 loc) · 1.02 KB
/
.env-sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# Sample configuration for environment variables in local development
# Secrets, define these!
# Use community-app tokens
export NPM_TOKEN=
# Environment for node app
export NODE_ENV=development
# Defines which port backend runs on
export PORT=9000
# Database connection string
export DATABASE_URL=postgres://community:community@localhost:5432/event-service
# Logging level of the app
# Possible levels 'silly', 'debug', 'verbose' 'info', 'warn', 'error'
export LOG_LEVEL=silly
# Set just random string in local environment
export SESSION_SECRET=secret
# If true, outputs all SQL statements to stdout. Valid values: true, false
# export DEBUG_DATABASE=true
# If true, disables redis usage
#export DISABLE_REDIS=false
# This can be used to control how long items are cached in redis
#export REDIS_EXPIRE_SECONDS=10
# Set prompt prefix
PREFIX="[community-app-event-service] "
if [[ $PS1 != *"$PREFIX"* ]]
then
export PS1="$PREFIX $PS1"
echo "Environment variables set!"
else
echo "Environment variables updated!"
fi