-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenv.sh
35 lines (26 loc) · 981 Bytes
/
env.sh
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
#!/usr/bin/env bash
if [ ! -f .env ]; then
echo "Generating .env file.."
touch .env
{
echo "PORT=4003"
echo "PROJECT=OTH"
echo "MODULE=PaymentServer"
echo "ENVIRONMENT=Local"
echo "MONGODB_URI={Database Connection Url}"
echo "MONGODB_CONNECTION_LIMIT={MongoDB Connection Limit}"
echo "DATABASE_URL={Database Connection Url}"
echo "POSTGRESQL_CONNECTION_LIMIT={Postgresql Connection Limit}"
echo "CLOUDAMQP_APIKEY={MQ Api Key}"
echo "CLOUDAMQP_URL={MQ Connection Url}"
echo "PAYMENT_SERVER_QUEUE_CHANNEL=oth_payment_queue"
echo "ORCHESTRATION_SERVER_QUEUE_CHANNEL=oth_orchestration_queue"
echo "REDISCLOUD_URL={Redis Connection Url}"
echo "REDIS_CONNECTION_LIMIT={Redis Connection Limit}"
echo "ACCESS_TOKEN_SECRET={Access Token Secret}"
echo "RESPONSE_ENCRYPTION_SECRET={Response Encryption Secret}"
echo "DEFAULT_LANGUAGE=en"
} >>.env
else
echo ".env file already exists. Nothing to do..."
fi