mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-08 14:04:52 +03:00
Rename docs.yml to docker-compose.docs.yml
This commit is contained in:
parent
1a8617a548
commit
74fdd96154
|
@ -67,11 +67,11 @@ To run in a detached (background) mode, just::
|
|||
|
||||
These commands don't run the docs service. In order to run docs service you can run::
|
||||
|
||||
$ docker compose -f docs.yml up
|
||||
$ docker compose -f docker-compose.docs.yml up
|
||||
|
||||
To run the docs with local services just use::
|
||||
|
||||
$ docker compose -f docker-compose.local.yml -f docs.yml up
|
||||
$ docker compose -f docker-compose.local.yml -f docker-compose.docs.yml up
|
||||
|
||||
The site should start and be accessible at http://localhost:3000 if you selected Webpack or Gulp as frontend pipeline and http://localhost:8000 otherwise.
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ After you have set up to `develop locally`_, run the following command from the
|
|||
|
||||
If you set up your project to `develop locally with docker`_, run the following command: ::
|
||||
|
||||
$ docker compose -f docs.yml up
|
||||
$ docker compose -f docker-compose.docs.yml up
|
||||
|
||||
Navigate to port 9000 on your host to see the documentation. This will be opened automatically at `localhost`_ for local, non-docker development.
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ docker compose -f docker-compose.local.yml run \
|
|||
django python manage.py check --settings=config.settings.production --deploy --database default --fail-level WARNING
|
||||
|
||||
# Generate the HTML for the documentation
|
||||
docker compose -f docs.yml run docs make html
|
||||
docker compose -f docker-compose.docs.yml run docs make html
|
||||
|
||||
# Run npm build script if package.json is present
|
||||
if [ -f "package.json" ]
|
||||
|
|
|
@ -32,7 +32,7 @@ steps:
|
|||
DATABASE_URL: pgsql://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres/$POSTGRES_DB
|
||||
commands:
|
||||
- docker-compose -f docker-compose.local.yml build
|
||||
- docker-compose -f docs.yml build
|
||||
- docker-compose -f docker-compose.docs.yml build
|
||||
- docker-compose -f docker-compose.local.yml run --rm django python manage.py migrate
|
||||
- docker-compose -f docker-compose.local.yml up -d
|
||||
- docker-compose -f docker-compose.local.yml run django pytest
|
||||
|
|
|
@ -72,7 +72,7 @@ jobs:
|
|||
run: docker compose -f docker-compose.local.yml build django
|
||||
|
||||
- name: Build the docs
|
||||
run: docker compose -f docs.yml build docs
|
||||
run: docker compose -f docker-compose.docs.yml build docs
|
||||
|
||||
- name: Run DB Migrations
|
||||
run: docker compose -f docker-compose.local.yml run --rm django python manage.py migrate
|
||||
|
|
|
@ -34,7 +34,7 @@ pytest:
|
|||
- docker:dind
|
||||
before_script:
|
||||
- docker compose -f docker-compose.local.yml build
|
||||
- docker compose -f docs.yml build
|
||||
- docker compose -f docker-compose.docs.yml build
|
||||
# Ensure celerybeat does not crash due to non-existent tables
|
||||
- docker compose -f docker-compose.local.yml run --rm django python manage.py migrate
|
||||
- docker compose -f docker-compose.local.yml up -d
|
||||
|
|
|
@ -20,7 +20,7 @@ jobs:
|
|||
- docker compose -v
|
||||
- docker -v
|
||||
- docker compose -f docker-compose.local.yml build
|
||||
- docker compose -f docs.yml build
|
||||
- docker compose -f docker-compose.docs.yml build
|
||||
# Ensure celerybeat does not crash due to non-existent tables
|
||||
- docker compose -f docker-compose.local.yml run --rm django python manage.py migrate
|
||||
- docker compose -f docker-compose.local.yml up -d
|
||||
|
|
Loading…
Reference in New Issue
Block a user