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

Improve production setup #1044

Merged
merged 10 commits into from Dec 8, 2021
Merged

Improve production setup #1044

merged 10 commits into from Dec 8, 2021

Conversation

timobrembeck
Copy link
Member

Short description

This adds various improvements for the production setup routine.

Proposed changes

  • Move dev dependencies to setup.py again (This makes it easier to install the debug dependencies via pip, e.g. pip install integreat-cms[debug])
  • Change handling of SECRET_KEY - Django already handles empty keys
  • Refactor settings
    • Enable more settings to be set via environment variables
    • Change the environment variable prefix from DJANGO_ to INTEGREAT_CMS_
    • Correctly parse boolean values that are passed as strings
  • Read settings from config file /etc/integreat-cms.ini
  • Update production documentation
  • Add MANIFEST.in file to exclude some more files from the package

Unfortunately, pipenv lock -r > requirements.txt outputs all dependencies including dev dependencies and I found no way to exclude them. So for now, we don't have a good way to make sure the package versions on the dev environment and the production server match.

@timobrembeck timobrembeck requested a review from a team November 25, 2021 15:56
This allows the Debug mode to be activated without manually installing django-debug-toolbar
After updating pylint to version 2.12.2, packed function arguments need to be documented with a starting asterisk (which in turn has to be escaped in order for Sphinx to recognize it).
See pylint-dev/pylint#5472 for reference.
- Enable more settings to be set via environment variables
- Change the environment variable prefix from "DJANGO_" to "INTEGREAT_CMS_"
- Correctly parse boolean values that are passed as strings
Copy link
Member

@ulliholtgrave ulliholtgrave left a comment

Choose a reason for hiding this comment

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

Good job! Let's see how the whole pipeline will behave :)

@timobrembeck timobrembeck merged commit f51ba45 into develop Dec 8, 2021
@timobrembeck timobrembeck deleted the enhancement/production-setup branch December 8, 2021 15:50
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.

None yet

2 participants