TACC / Core-CMS-Custom

Customized Core CMS code and builds
5 stars 0 forks source link

feat(example_cms): initial commit #163

Closed wesleyboar closed 1 year ago

wesleyboar commented 1 year ago

Overview

Add Example project.

Changes

Testing

Run MATCSSI with make. Set up CMS secrets, settings, container commands, et cetera. Load http://0.0.0.0:8000/.

0. `git clone git@github.com:TACC/Core-CMS-Custom.git` 1. `git checkout task/example_cms` 2. ``` cd custom-project-dir cp taccsite_cms/secrets.default.py taccsite_cms/secrets.py ``` 3. Create a `settings_local.py` with content from [Core-CMS `settings_local.example.py`](https://github.com/TACC/Core-CMS/blob/main/taccsite_cms/settings_local.example.py). 4. `make build` 5. `make start` 6. Open new terminal. 7. `docker exec -it example_cms /bin/bash` 8. `python manage.py migrate` 9. `python manage.py collectstatic` 10. `python manage.py createsuperuser` 11. Open http://0.0.0.0:8000/. 12. Populate as desired.

UI

None.

Notes

To support running multiple CMS projects locally at once:

  1. User must copy secrets.default.py to secrets.py or else docker network access would fail.
  2. Docker containers are prefixed with example_ instead of core_ or else container names would conflict.
wesleyboar commented 1 year ago

I have matcssi_cms (#161) and demdata_cms (#164) working. This was based on the former (which deploys perfectly) and the fixing of the latter (which deploys well) was based on this. This is not to be deployed on a server, just cloned.