Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(example_cms): initial commit #163

Merged
merged 5 commits into from
May 25, 2023
Merged

feat(example_cms): initial commit #163

merged 5 commits into from
May 25, 2023

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented May 24, 2023

Overview

Add Example project.

Changes

  • added example_cms
  • added instructions to README for a project with a secrets.default.py

Testing

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

  1. git clone [email protected]:TACC/Core-CMS-Custom.git
  2. git checkout task/example_cms
  3. cd custom-project-dir
    cp taccsite_cms/secrets.default.py taccsite_cms/secrets.py
    
  4. Create a settings_local.py with content from Core-CMS settings_local.example.py.
  5. make build
  6. make start
  7. Open new terminal.
  8. docker exec -it example_cms /bin/bash
  9. python manage.py migrate
  10. python manage.py collectstatic
  11. python manage.py createsuperuser
  12. Open http://0.0.0.0:8000/.
  13. 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 wesleyboar mentioned this pull request May 24, 2023
@wesleyboar
Copy link
Member Author

wesleyboar commented May 25, 2023

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.

@wesleyboar wesleyboar merged commit 55cf7c2 into main May 25, 2023
@wesleyboar wesleyboar deleted the task/example_cms branch May 25, 2023 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant