feat: auto migrate on container start if AUTO_MIGRATE set
This commit is contained in:
@@ -76,6 +76,10 @@ if [ "$1" = 'start' ]; then
|
||||
export FRAPPE_PORT=8000
|
||||
fi
|
||||
|
||||
if [[ ! -z "$AUTO_MIGRATE" ]]; then
|
||||
su frappe -c ". /home/frappe/frappe-bench/env/bin/activate \
|
||||
&& python /home/frappe/frappe-bench/commands/auto_migrate.py"
|
||||
fi
|
||||
|
||||
if [[ -z "$RUN_AS_ROOT" ]]; then
|
||||
su frappe -c ". /home/frappe/frappe-bench/env/bin/activate \
|
||||
|
||||
Reference in New Issue
Block a user