Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #87 from multinet-app/change_port
Browse files Browse the repository at this point in the history
Add .env file, add scripts to Pipfile, change default Mongo port
  • Loading branch information
jjnesbitt committed Jul 17, 2019
2 parents ee99afd + bc38a7f commit 3ed56ac
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
EXTERNAL_MONGO_PORT=27021
GIRDER_SERVE_PORT=9090
DOC_SERVE_PORT=8000
7 changes: 7 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ python_version = "3.7"

[pipenv]
allow_prereleases = true

[scripts]
girder-build = "girder build"
girder-serve = "girder serve --database mongodb://localhost:${EXTERNAL_MONGO_PORT}/multinet --port ${GIRDER_SERVE_PORT}"
build-docs = "make html -C docs"
serve-docs = "python -m http.server ${DOC_SERVE_PORT} -d docs/_build/html"
lint = "tox -e flake8"
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
mongodb:
image: mongo:4.0.6
ports:
- "27017:27017"
- "${EXTERNAL_MONGO_PORT}:27017"
volumes:
- "${MONGO_DATA:-/var/mongodb}:/data/db"
arangodb:
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Set Up Multinet/Girder

4. Build the Girder web client: ::

$ pipenv run girder build
$ yarn build:girder

5. Start the Multinet server: ::

Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
"description": "A Girder plugin proof-of-concept for a MultiNet API / web application",
"scripts": {
"lint:js": "yarn --cwd client run lint",
"lint:py": "cd multinet && pipenv run tox -e flake8",
"start:server": "pipenv run girder serve --database mongodb://localhost:27017/multinet --port 9090",
"build:docs": "pipenv run make html -C docs",
"serve:docs": "pipenv run python -m http.server -d docs/_build/html",
"lint:py": "cd multinet && pipenv run lint",
"start:server": "pipenv run girder-serve",
"start:client": "cd client && yarn serve",
"build:client": "cd client && yarn install",
"build:girder": "pipenv run girder-build",
"build:docs": "pipenv run build-docs",
"serve:docs": "pipenv run serve-docs",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand Down

0 comments on commit 3ed56ac

Please sign in to comment.