Skip to content

Commit

Permalink
Testing 'python manage.py populate_database' (unsafe, likely to reset…
Browse files Browse the repository at this point in the history
… database, not production ready) (refs SimonbJohnson/quickX3#69)
  • Loading branch information
fititnt committed Apr 11, 2020
1 parent 9b53f27 commit 5be6d9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
# && yarn install \
# && yarn production-build

RUN git clone -b master --single-branch --depth=1 https://github.com/SimonbJohnson/quickX3.git /usr/src/app/
# RUN git clone -b master --single-branch --depth=1 https://github.com/SimonbJohnson/quickX3.git /usr/src/app/ \
# RUN git clone -b master --single-branch --depth=1 https://github.com/SimonbJohnson/quickX3.git /usr/src/app/
RUN git clone -b adding-populate-database-command --single-branch --depth=1 https://github.com/SimonbJohnson/quickX3.git /usr/src/app/
# RUN git clone -b adding-populate-database-command --single-branch --depth=1 https://github.com/SimonbJohnson/quickX3.git /usr/src/app/ \
# && chown node:node -R /home/node/uwazi/ \
# && cd /home/node/uwazi/ \
# && yarn install \
Expand Down
4 changes: 4 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@

python /usr/src/app/manage.py migrate

# Note: This is likely to reset the database, change it later to be optional
# see https://github.com/SimonbJohnson/quickX3/issues/69
python /usr/src/app/manage.py populate_database

python /usr/src/app/manage.py runserver 0.0.0.0:8000

0 comments on commit 5be6d9e

Please sign in to comment.