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
5 changed files with 15 additions and 11 deletions
|
|
@ -3,10 +3,17 @@ set -e
|
|||
python manage.py wait_for_db
|
||||
python manage.py migrate
|
||||
|
||||
# Register instance
|
||||
python manage.py register_instance
|
||||
# Load the configuration variable
|
||||
python manage.py configure_instance
|
||||
# Set default value for ENABLE_REGISTRATION
|
||||
ENABLE_REGISTRATION=${ENABLE_REGISTRATION:-1}
|
||||
|
||||
# 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
|
||||
python bin/bucket_script.py
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue