File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,17 +33,16 @@ echo MONITORING_DATA_TTL=$MONITORING_DATA_TTL
33
33
/usr/local/bin/invoke waitfordbs > /usr/src/geonode/invoke.log 2>&1
34
34
echo " waitfordbs task done"
35
35
36
- echo " running migrations"
37
- /usr/local/bin/invoke migrations > /usr/src/geonode/invoke.log 2>&1
38
- echo " migrations task done"
39
-
40
36
cmd=" $@ "
41
37
42
38
echo DOCKER_ENV=$DOCKER_ENV
43
39
44
40
if [ -z ${DOCKER_ENV} ] || [ ${DOCKER_ENV} = " development" ]
45
41
then
46
42
43
+ echo " running migrations"
44
+ /usr/local/bin/invoke migrations > /usr/src/geonode/invoke.log 2>&1
45
+ echo " migrations task done"
47
46
/usr/local/bin/invoke prepare > /usr/src/geonode/invoke.log 2>&1
48
47
echo " prepare task done"
49
48
/usr/local/bin/invoke fixtures > /usr/src/geonode/invoke.log 2>&1
72
71
echo " Executing Celery server $cmd for Production"
73
72
else
74
73
74
+ echo " running migrations"
75
+ /usr/local/bin/invoke migrations > /usr/src/geonode/invoke.log 2>&1
76
+ echo " migrations task done"
75
77
/usr/local/bin/invoke prepare > /usr/src/geonode/invoke.log 2>&1
76
78
echo " prepare task done"
77
79
Original file line number Diff line number Diff line change @@ -185,8 +185,6 @@ def update(ctx):
185
185
@task
186
186
def migrations (ctx ):
187
187
print ("**************************migrations*******************************" )
188
- ctx .run (f"python manage.py makemigrations --noinput --merge --settings={ _localsettings ()} " , pty = True )
189
- ctx .run (f"python manage.py makemigrations --noinput --settings={ _localsettings ()} " , pty = True )
190
188
ctx .run (f"python manage.py migrate --noinput --settings={ _localsettings ()} " , pty = True )
191
189
ctx .run (f"python manage.py updategeoip --settings={ _localsettings ()} " , pty = True )
192
190
try :
You can’t perform that action at this time.
0 commit comments