2023-03-09 15:19:12 +00:00
|
|
|
#!/bin/bash
|
2023-08-21 12:42:41 +00:00
|
|
|
cp ./.env.example ./.env
|
2023-03-09 15:19:12 +00:00
|
|
|
|
2023-05-25 04:54:20 +00:00
|
|
|
# Export for tr error in mac
|
2023-04-10 12:13:19 +00:00
|
|
|
export LC_ALL=C
|
|
|
|
export LC_CTYPE=C
|
2023-05-25 04:54:20 +00:00
|
|
|
|
2023-09-13 14:51:02 +00:00
|
|
|
cp ./web/.env.example ./web/.env
|
|
|
|
cp ./space/.env.example ./space/.env
|
|
|
|
cp ./apiserver/.env.example ./apiserver/.env
|
2023-05-25 04:54:20 +00:00
|
|
|
|
|
|
|
# Generate the SECRET_KEY that will be used by django
|
2023-09-19 11:14:12 +00:00
|
|
|
echo -e "SECRET_KEY=\"$(tr -dc 'a-z0-9' < /dev/urandom | head -c50)\"" >> ./apiserver/.env
|