mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
b6321438ce
* chore: update docker environment variables and compose file for better readability * dev: update single dockerfile * dev: update WEB_URL configuration * dev: move database settings to environment variable * chore: remove port configuration from default compose file * dev: update example env to add EMAIL_FROM and default values for AWS
17 lines
440 B
Bash
Executable File
17 lines
440 B
Bash
Executable File
#!/bin/bash
|
|
cp ./.env.example ./.env
|
|
|
|
# Export for tr error in mac
|
|
export LC_ALL=C
|
|
export LC_CTYPE=C
|
|
|
|
|
|
# Generate the NEXT_PUBLIC_API_BASE_URL with given IP
|
|
echo -e "\nNEXT_PUBLIC_API_BASE_URL=$1" >> ./.env
|
|
|
|
# Generate the SECRET_KEY that will be used by django
|
|
echo -e "SECRET_KEY=\"$(tr -dc 'a-z0-9!@#$%^&*(-_=+)' < /dev/urandom | head -c50)\"" >> ./.env
|
|
|
|
# WEB_URL for email redirection and image saving
|
|
echo -e "WEB_URL=$1" >> ./.env
|