Skip to content

Commit 766b2fa

Browse files
authored
Merge pull request #372 from signals-dev/makefileUpdate
init and load mongo data when use make install-develop
2 parents dab8847 + af7b37d commit 766b2fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ install: clean-build clean-pyc clean-client ## install the packages for running
4242
.PHONY: install-develop
4343
install-develop: clean-build clean-pyc clean-client ## install the package in editable mode and dependencies for development
4444
pip install -e .[dev]
45+
$(MAKE) init-db && $(MAKE) load-db-mtv
4546
cd client && npm install && npm run build
4647

4748
.PHONY: init-db
@@ -56,6 +57,7 @@ load-db-mtv: init-db
5657
rm -f -r db-instance/data/mtv/
5758
curl -o mtv.tar.bz2 "https://d3-ai-mtv.s3.us-east-2.amazonaws.com/mtv.tar.bz2"
5859
tar -xf mtv.tar.bz2 -C ./db-instance/data/ && rm mtv.tar.bz2
60+
mongo mtv --eval "db.dropDatabase()"
5961
mongorestore --db mtv ./db-instance/data/mtv/
6062

6163
# ------------------ session: docker installation ------------------- #

0 commit comments

Comments
 (0)