mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
dev: environment settings (#2794)
* dev: update environment configuration * dev: update the takeoff script for instance registration
This commit is contained in:
parent
63b6150b9c
commit
728213e3fd
@ -2,10 +2,10 @@
|
|||||||
# Debug value for api server use it as 0 for production use
|
# Debug value for api server use it as 0 for production use
|
||||||
DEBUG=0
|
DEBUG=0
|
||||||
CORS_ALLOWED_ORIGINS=""
|
CORS_ALLOWED_ORIGINS=""
|
||||||
ENVIRONMENT="development"
|
|
||||||
|
|
||||||
# Error logs
|
# Error logs
|
||||||
SENTRY_DSN=""
|
SENTRY_DSN=""
|
||||||
|
SENTRY_ENVIRONMENT="development"
|
||||||
|
|
||||||
# Database Settings
|
# Database Settings
|
||||||
PGUSER="plane"
|
PGUSER="plane"
|
||||||
|
@ -3,10 +3,17 @@ set -e
|
|||||||
python manage.py wait_for_db
|
python manage.py wait_for_db
|
||||||
python manage.py migrate
|
python manage.py migrate
|
||||||
|
|
||||||
# Register instance
|
# Set default value for ENABLE_REGISTRATION
|
||||||
python manage.py register_instance
|
ENABLE_REGISTRATION=${ENABLE_REGISTRATION:-1}
|
||||||
# Load the configuration variable
|
|
||||||
python manage.py configure_instance
|
# Check if ENABLE_REGISTRATION is not set to '0'
|
||||||
|
if [ "$ENABLE_REGISTRATION" != "0" ]; then
|
||||||
|
# Register instance
|
||||||
|
python manage.py register_instance
|
||||||
|
# Load the configuration variable
|
||||||
|
python manage.py configure_instance
|
||||||
|
fi
|
||||||
|
|
||||||
# Create the default bucket
|
# Create the default bucket
|
||||||
python bin/bucket_script.py
|
python bin/bucket_script.py
|
||||||
|
|
||||||
|
@ -27,9 +27,6 @@ DEBUG = False
|
|||||||
# Allowed Hosts
|
# Allowed Hosts
|
||||||
ALLOWED_HOSTS = ["*"]
|
ALLOWED_HOSTS = ["*"]
|
||||||
|
|
||||||
# Redirect if / is not present
|
|
||||||
APPEND_SLASH = True
|
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
"django.contrib.auth",
|
"django.contrib.auth",
|
||||||
@ -301,7 +298,7 @@ if bool(os.environ.get("SENTRY_DSN", False)):
|
|||||||
],
|
],
|
||||||
traces_sample_rate=1,
|
traces_sample_rate=1,
|
||||||
send_default_pii=True,
|
send_default_pii=True,
|
||||||
environment=os.environ.get("ENVIRONMENT", "development"),
|
environment=os.environ.get("SENTRY_ENVIRONMENT", "development"),
|
||||||
profiles_sample_rate=1.0,
|
profiles_sample_rate=1.0,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ x-app-env : &app-env
|
|||||||
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET:-""}
|
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET:-""}
|
||||||
- DOCKERIZED=${DOCKERIZED:-1} # deprecated
|
- DOCKERIZED=${DOCKERIZED:-1} # deprecated
|
||||||
- CORS_ALLOWED_ORIGINS=${CORS_ALLOWED_ORIGINS:-""}
|
- CORS_ALLOWED_ORIGINS=${CORS_ALLOWED_ORIGINS:-""}
|
||||||
- ENVIRONMENT=${ENVIRONMENT:-"production"}
|
- SENTRY_ENVIRONMENT=${SENTRY_ENVIRONMENT:-"production"}
|
||||||
# Gunicorn Workers
|
# Gunicorn Workers
|
||||||
- GUNICORN_WORKERS=${GUNICORN_WORKERS:-2}
|
- GUNICORN_WORKERS=${GUNICORN_WORKERS:-2}
|
||||||
#DB SETTINGS
|
#DB SETTINGS
|
||||||
|
@ -14,7 +14,7 @@ SENTRY_DSN=""
|
|||||||
GITHUB_CLIENT_SECRET=""
|
GITHUB_CLIENT_SECRET=""
|
||||||
DOCKERIZED=1 # deprecated
|
DOCKERIZED=1 # deprecated
|
||||||
CORS_ALLOWED_ORIGINS=""
|
CORS_ALLOWED_ORIGINS=""
|
||||||
ENVIRONMENT="production"
|
SENTRY_ENVIRONMENT="production"
|
||||||
|
|
||||||
#DB SETTINGS
|
#DB SETTINGS
|
||||||
PGHOST=plane-db
|
PGHOST=plane-db
|
||||||
|
Loading…
Reference in New Issue
Block a user