Skip to content

Commit

Permalink
Fix commands after testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
basilfx committed Jul 25, 2017
1 parent 1fd4aae commit 3049e53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ docker build . --tag photod:latest
cp photod-backend/photod/settings/local.py.default photod-backend/photod/settings/local.py

# Initial setup.
docker run --rm -ti -u `id -u` -v `pwd`:`pwd` -w `pwd` photod:latest init
docker run --rm -ti -e HOME=/tmp -u `id -u` -v `pwd`:`pwd` -w `pwd` photod:latest init
docker run --rm -ti -u `id -u` -v `pwd`:`pwd` -w `pwd` photod:latest backend migrate
docker run --rm -ti -u `id -u` -v `pwd`:`pwd` -w `pwd` photod:latest backend createsuperuser

Expand All @@ -23,8 +23,8 @@ docker run --rm -ti -u `id -u` -v `pwd`:`pwd` -v /path/to/media:/path/to/media -
docker run --rm -ti -u `id -u` -v `pwd`:`pwd` -w `pwd` photod:latest backend process

# Run the development servers (auto-reload).
docker run --rm -ti -p 7000:7000 -u `id -u` -v `pwd`:`pwd` -w `pwd` photod:latest backend runserver 0:7000
docker run --rm -ti -p 8000:8000 -u `id -u` -v `pwd`:`pwd` -w `pwd` photod:latest frontend run start
docker run --rm -ti -p 7000:7000 -u `id -u` -v `pwd`:`pwd` -v /path/to/media:/path/to/media -w `pwd` photod:latest backend runserver 0:7000
docker run --rm -ti -e HOME=/tmp -p 8000:8000 -u `id -u` -v `pwd`:`pwd` -w `pwd` photod:latest frontend run start

# Build frontend
docker run --rm -ti -p 8000:8000 -u `id -u` -v `pwd`:`pwd` -w `pwd` photod:latest frontend run build-production
Expand Down
2 changes: 1 addition & 1 deletion docker/entry_point.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi
# Parse option and execute action.
case $OPTION in
init)
(cd photod-frontend && python3 -m venv env && source env/bin/activate && pip install -r requirements.txt)
(cd photod-backend && python3 -m venv env && source env/bin/activate && pip install -r requirements.txt)
(cd photod-frontend && yarn)
;;
backend)
Expand Down

0 comments on commit 3049e53

Please sign in to comment.