From 699334fd0b2a33bebe24ba34be5b6bbf3fd526a6 Mon Sep 17 00:00:00 2001 From: Wesley B <62723358+wesleyboar@users.noreply.github.com> Date: Mon, 9 Dec 2024 18:32:05 -0600 Subject: [PATCH] fix: settings dirs via manual command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simple manual way to stop creation of empty directories. Drawback: Manual step… BUT it replaces step that had been here. --- README.md | 7 ++++++- .../docker/docker-compose-dev.all.debug.yml | 20 ++++--------------- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 7a571ecf0..170b51cfc 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,12 @@ After you clone the repository locally, there are several configuration steps re - Copy `server/portal/settings/settings_local.example.py` to `server/portal/settings/settings_local.py` - _Note: [Setup ngrok](#setting-up-notifications-locally) and update `WH_BASE_URL` in `settings_local.py` to enable webhook notifications locally_ +##### CMS + +- Create `server/conf/cms/` settings and secrets files e.g. `touch src/components/settings_{custom,local}.py && touch src/components/secrets.py`. + +To populate or customize the CMS, read [Customize a CMS](./docs/customize-cms.md). + #### Build the image for the portal's django container: make build OR @@ -276,7 +282,6 @@ Sign your commits ([see this link](https://help.github.com/en/github/authenticat * [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo) * [Tapis Project (Formerly Agave)](https://tacc-cloud.readthedocs.io/projects/agave/en/latest/) -* [Customize the CMS](./docs/customize-cms.md) diff --git a/server/conf/docker/docker-compose-dev.all.debug.yml b/server/conf/docker/docker-compose-dev.all.debug.yml index 290c89f4a..af0430f83 100644 --- a/server/conf/docker/docker-compose-dev.all.debug.yml +++ b/server/conf/docker/docker-compose-dev.all.debug.yml @@ -6,22 +6,10 @@ services: cms: image: taccwma/core-cms:feat-CMD-194-customize-core-cms-in-core-portal volumes: - - type: bind - source: ../cms/settings/settings_default.py - target: /code/taccsite_cms/settings_default.py - read_only: true - - type: bind - source: ../cms/settings/settings_custom.py - target: /code/taccsite_cms/settings_custom.py - read_only: true - - type: bind - source: ../cms/settings/secrets.py - target: /code/taccsite_cms/secrets.py - read_only: true - - type: bind - source: ../cms/settings/settings_local.py - target: /code/taccsite_cms/settings_local.py - read_only: true + - ../cms/settings/settings_default.py:/code/taccsite_cms/settings_default.py + - ../cms/settings/settings_custom.py:/code/taccsite_cms/settings_custom.py + - ../cms/settings/secrets.py:/code/taccsite_cms/secrets.py + - ../cms/settings/settings_local.py:/code/taccsite_cms/settings_local.py - ../cms/uwsgi/uwsgi.ini:/code/uwsgi.ini - ../../cms/static:/code/static - ../../cms/media:/code/media