File tree Expand file tree Collapse file tree 5 files changed +8
-12
lines changed
Expand file tree Collapse file tree 5 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ ADD . /mtv
5050WORKDIR /mtv
5151
5252# install application packages for python and node
53- RUN make install-theme
5453RUN make install
5554RUN cd ./client && npm install && npm run build:prod
5655
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ install: clean-build clean-pyc clean-client ## install the packages for running
4040.PHONY : install-develop
4141install-develop : clean-build clean-pyc clean-client # # install the package in editable mode and dependencies for development
4242 pip install -e .[dev]
43- # npm install --quiet -g gulp-cli
4443 cd client && npm install
4544
4645.PHONY : install-theme
Original file line number Diff line number Diff line change 66<!-- [](https://pypi.python.org/pypi/mtv) -->
77[ ![ Build Status] ( https://travis-ci.com/dyuliu/mtv.svg?branch=master )] ( https://travis-ci.com/dyuliu/mtv )
88[ ![ Coverage Status] ( https://coveralls.io/repos/github/dyuliu/MTV/badge.svg )] ( https://coveralls.io/github/dyuliu/MTV )
9-
9+ [ ![ Github All Releases] ( https://img.shields.io/github/downloads/dyuliu/MTV/total )] ( https://github.com/dyuliu/MTV/releases )
10+ [ ![ Docker Pulls] ( https://img.shields.io/docker/pulls/dyuliu/mtv )] ( https://hub.docker.com/r/dyuliu/mtv )
1011
1112# MTV
1213
@@ -21,7 +22,6 @@ The Restful APIs documentation: http://45.77.5.58/apidoc/
2122[ The MIT License] ( https://github.com/HDI-Project/MTV/blob/master/LICENSE )
2223
2324
24-
2525## Before You Begin
2626
2727Before you begin we recommend you read about the basic building blocks that assemble the ** MTV** :
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: "3"
22services :
33 db :
44 image : mongo:4.0
5- container_name : mtv-db
5+ container_name : mtv_db
66 command : bash -c "mongod --bind_ip_all --port 27017 --logpath /mtv/log/db.log --fork && mongorestore --db mtv /mtv/data/mtv/"
77 volumes :
88 - ./db-instance/data:/mtv/data
Original file line number Diff line number Diff line change @@ -2,25 +2,23 @@ version: "3"
22services :
33 db :
44 image : mongo:4.0
5- container_name : mtv-db
5+ container_name : mtv_db
66 ports :
77 - " 127.0.0.1:27018:27017"
8- # command: mongod --port 27017 --dbpath /mtv/db-instance/data --logpath /mtv/db-instance/log/db.log --fork
9- # command: bash -c "mongod --bind_ip_all --port 27017 --logpath /mtv/log/db.log --fork && tail -F xx"
10- # command: bash -c "mongod --bind_ip_all --port 27017 --logpath /mtv/log/db.log --fork && mongorestore --db mtv /mtv/dump/mtv/ && tail -F anything"
118 command : bash -c "mongod --bind_ip_all --port 27017 --logpath /mtv/log/db.log --fork && tail -F anything"
129 volumes :
1310 - ./db-instance/data:/mtv/data
1411 - ./db-instance/log:/mtv/log
1512 - ./db-instance/dump:/mtv/dump
16- web :
17- image : mtv
13+ app :
14+ image : dyuliu/ mtv:latest
1815 # build: .
19- container_name : mtv
16+ container_name : mtv_app
2017 depends_on :
2118 - db
2219 ports :
2320 - " 3000:3000"
2421 command : mtv run --env production -v --docker
22+ # command: bash -c "npm -C client run build:prod && mtv run --env production -v --docker"
2523 # volumes:
2624 # - .:/mtv
You can’t perform that action at this time.
0 commit comments