@@ -111,9 +111,6 @@ help:
111
111
@echo " superuser create a Django super user"
112
112
@echo " unittest run unittests"
113
113
@echo " local-upload-data upload data to Ingress if it is up and running locally"
114
- @echo " unleash-export export feature-flags to file"
115
- @echo " unleash-import import feature-flags from file"
116
- @echo " unleash-import-drop import feature-flags from file AND wipe current database"
117
114
@echo " scan_project run security scan"
118
115
@echo " "
119
116
@echo " --- Commands using Docker Compose ---"
@@ -256,19 +253,6 @@ unittest:
256
253
superuser :
257
254
$(DJANGO_MANAGE ) createsuperuser
258
255
259
- unleash-export :
260
- curl -X GET -H " Authorization: Basic YWRtaW46" \
261
- " http://localhost:4242/api/admin/state/export?format=json&featureToggles=1&strategies=0&tags=0&projects=0&download=1" \
262
- -s | python -m json.tool > .unleash/flags.json
263
-
264
- unleash-import :
265
- curl -X POST -H " Content-Type: application/json" -H " Authorization: Basic YWRtaW46" \
266
- -s -d @.unleash/flags.json http://localhost:4242/api/admin/state/import
267
-
268
- unleash-import-drop :
269
- curl -X POST -H " Content-Type: application/json" -H " Authorization: Basic YWRtaW46" \
270
- -s -d @.unleash/flags.json http://localhost:4242/api/admin/state/import? drop=true
271
-
272
256
clowdapp : kustomize
273
257
$(KUSTOMIZE ) build deploy/kustomize > deploy/clowdapp.yaml
274
258
@@ -372,12 +356,8 @@ docker-up-min-no-build-with-listener: docker-up-min-no-build
372
356
373
357
docker-up-db :
374
358
$(DOCKER_COMPOSE ) up -d db
375
- @until pg_isready -h $$ {POSTGRES_SQL_SERVICE_HOST:-localhost} -p $$ {POSTGRES_SQL_SERVICE_PORT:-15432} > /dev/null ; do \
376
- printf ' .' ; \
377
- sleep 0.5 ; \
378
- done
379
- @echo ' PostgreSQL is available!'
380
359
$(DOCKER_COMPOSE ) up -d unleash
360
+ dev/scripts/setup_unleash.py
381
361
382
362
docker-up-db-monitor :
383
363
$(DOCKER_COMPOSE ) up --build -d grafana
0 commit comments