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

Update CMS content fixture, tweak Wagtail Makefile, settings, and styles for review apps / staging #1200

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

hancush
Copy link
Collaborator

@hancush hancush commented Jan 24, 2025

Overview

See title.

Connects #1194

Testing Instructions

  • Follow the steps in the README to create a database and populate a database for the CMS.
  • View the About page and confirm it has all the content that appears on the production site.
  • Log into the CMS and do some stuff. Confirm the changes appear as expected.

Comment on lines +822 to +825
.richtext-image {
max-width: 100%;
height: auto;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't let embedded images be enormous!

Comment on lines +10 to +11
docker compose run --rm -e DATABASE_URL=${DATABASE_URL} python manage.py refresh_guid
docker compose run --rm -e DATABASE_URL=${DATABASE_URL} python manage.py update_index
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Classify tags and update the search index.

@@ -14,7 +14,7 @@
DJANGO_ALLOWED_HOSTS=(list, ["localhost", "127.0.0.1", "0.0.0.0"]),
COUNCILMATIC_SUPPRESS_LIVE_MEDIA=(list, []),
DATABASE_URL=(str, "postgis://postgres:postgres@postgres:5432/lametro"),
SEARCH_URL=(str, "http://elasticsearch:9200"),
SEARCH_URL=(str, os.getenv("SEARCHBOX_URL", "http://elasticsearch:9200")),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the environment contains a SearchBox URL, use it!

@@ -109,7 +109,7 @@
"value": "True"
},
"DJANGO_ALLOWED_HOSTS": {
"value": ".herokuapp.com"
"value": ".herokuapp.com,localhost"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Support for Wagtail page previews.

@hancush hancush temporarily deployed to la-metro-cou-hcg-stagin-aaqw1r January 24, 2025 16:09 Inactive
@hancush
Copy link
Collaborator Author

hancush commented Jan 24, 2025

Followed my own testing instructions!

@hancush hancush merged commit 10d7b5b into feat/cms-epic Jan 24, 2025
2 checks passed
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