mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
* fix: adding secret key variable in newline adding secret key variable in newline in api server env file and setting default value for `HARD_DELETE_AFTER_DAYS` * added newline at EOF
15 lines
402 B
Bash
Executable File
15 lines
402 B
Bash
Executable File
#!/bin/bash
|
|
cp ./.env.example ./.env
|
|
|
|
# Export for tr error in mac
|
|
export LC_ALL=C
|
|
export LC_CTYPE=C
|
|
|
|
cp ./web/.env.example ./web/.env
|
|
cp ./apiserver/.env.example ./apiserver/.env
|
|
cp ./space/.env.example ./space/.env
|
|
cp ./admin/.env.example ./admin/.env
|
|
|
|
# Generate the SECRET_KEY that will be used by django
|
|
echo -e "\nSECRET_KEY=\"$(tr -dc 'a-z0-9' < /dev/urandom | head -c50)\"" >> ./apiserver/.env
|