Skip to content

Commit

Permalink
fix: settings dirs, type:bind read_only:true
Browse files Browse the repository at this point in the history
Verbose config way to stop creation of empty directories.

Drawback: Error if files do not exist.
  • Loading branch information
wesleyboar committed Dec 10, 2024
1 parent 4c0fb05 commit 985e86a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
11 changes: 0 additions & 11 deletions docs/customize-cms.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,6 @@ This is all optional. You can develop Core-Portal without CMS customization.

To create your own CMS test **content**, [learn Django CMS as we use it](https://tacc-main.atlassian.net/wiki/x/phdv).

To be able to customize CMS **settings** or **secrets**:
1. Run `make stop`.
2. Delete `server/conf/cms/settings_*.py` **directories**.
3. Create CMS settings files:
```sh
touch server/conf/cms/settings_custom.py
touch server/conf/cms/secrets.py
touch server/conf/cms/settings_local.py
```
4. Run `make start`.

To **emulate** a specific project's CMS **settings**:
1. Visit https://github.com/TACC/Core-Portal-Resources/blob/main/.
2. Navigate to specific project.
Expand Down
20 changes: 16 additions & 4 deletions server/conf/docker/docker-compose-dev.all.debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,22 @@ services:
cms:
image: taccwma/core-cms:feat-CMD-194-customize-core-cms-in-core-portal
volumes:
- ../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
- 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/uwsgi/uwsgi.ini:/code/uwsgi.ini
- ../../cms/static:/code/static
- ../../cms/media:/code/media
Expand Down

0 comments on commit 985e86a

Please sign in to comment.