Skip to content

Commit

Permalink
enables override of livedemo entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
smirolo committed Mar 17, 2024
1 parent cc6c411 commit 7896e11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ SYSCONFDIR := $(installTop)/etc
LOCALSTATEDIR := $(installTop)/var
CONFIG_DIR := $(SYSCONFDIR)/$(APP_NAME)
ASSETS_DIR := $(srcDir)/htdocs/assets
LIVEDEMO_ENTRY_POINT ?= http://djaopsp-demo

installDirs ?= /usr/bin/install -d
installFiles ?= /usr/bin/install -p -m 644
Expand Down Expand Up @@ -149,7 +150,7 @@ setup-livedemo:
cd $(srcDir) && $(PYTHON) manage.py migrate --run-syncdb
cat $(srcDir)/djaoapp/migrations/adjustments1-sqlite3.sql | $(SQLITE_UNSAFE) $(LIVEDEMO_DB_FILENAME)
cd $(srcDir) && APP_NAME=djaopsp $(PYTHON) manage.py loadfixtures djaoapp/fixtures/livedemo-db.json
$(SQLITE) $(DB_FILENAME) "UPDATE rules_app set authentication=1, entry_point='http://djaopsp-demo', enc_key='$(DJAODJIN_SECRET_KEY)';"
$(SQLITE) $(DB_FILENAME) "UPDATE rules_app set authentication=1, entry_point='$(LIVEDEMO_ENTRY_POINT)', enc_key='$(DJAODJIN_SECRET_KEY)';"
cat $(srcDir)/djaoapp/migrations/adjustments2-sqlite3.sql | $(SQLITE) $(LIVEDEMO_DB_FILENAME)
cd $(srcDir) && $(PYTHON) manage.py load_test_transactions --provider=djaopsp --profile-pictures htdocs/media/livedemo/profiles
[ ! -f $(srcDir)/package-lock.json ] || rm $(srcDir)/package-lock.json
Expand Down

0 comments on commit 7896e11

Please sign in to comment.