Skip to content

Conversation

@sylvinus
Copy link
Member

@sylvinus sylvinus commented Aug 8, 2025

This PR adds a new deployment option for Heroku-like platforms based on buildpacks, like Scalingo.

Similar deployments options are already supported in Messages, Drive and soon Docs suitenumerique/docs#1020

@sylvinus sylvinus requested a review from lebaudantoine August 8, 2025 08:59
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 8, 2025

Copy link
Collaborator

@lebaudantoine lebaudantoine left a comment

Choose a reason for hiding this comment

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

thx for your contribution @sylvinus

@@ -0,0 +1,7 @@
#!/usr/bin/env python
"""Setup file for the impress module. All configuration stands in the setup.cfg file."""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"""Setup file for the impress module. All configuration stands in the setup.cfg file."""
"""Setup file for the meet module. All configuration stands in the setup.cfg file."""

Copy link
Collaborator

Choose a reason for hiding this comment

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

is the addition of this file necessary for Scalingo?

https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html

for reference :

If compatibility with legacy builds or versions of tools that don’t support certain packaging standards (e.g. PEP 517 or PEP 660), a simple setup.py script can be added to your project [1] (while keeping the configuration in pyproject.toml):

Discussed IRL with @lunika

Copy link
Member Author

Choose a reason for hiding this comment

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

I know it fails without it. Not sure if there's another easier way...

DATABASES = {
"default": {
"default": dj_database_url.config()
if environ.get("DATABASE_URL")
Copy link
Collaborator

@lebaudantoine lebaudantoine Aug 18, 2025

Choose a reason for hiding this comment

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

What do you think about using Django config values (e.g., values.Value(...)) to keep settings.py consistent?

Copy link
Collaborator

@lebaudantoine lebaudantoine Aug 18, 2025

Choose a reason for hiding this comment

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

Nit: I prefer DATABASE_, but for consistency, should we stick with DB_ for all database-related settings?

Copy link
Member Author

Choose a reason for hiding this comment

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

mv src/backend/* ./
mv src/nginx/* ./

echo "3.13" > .python-version No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: missing EOF

@@ -0,0 +1,50 @@

Copy link
Collaborator

Choose a reason for hiding this comment

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

Quick review, I agree with @lunika's comment. The src/nginx folder name doesn’t really communicate the purpose of this Nginx config. Could we at least add a short README in this folder to explain the overall PaaS deployment?

Also, just a note: /media and /media-auth are required in Meet for handling recordings!

Copy link
Member Author

Choose a reason for hiding this comment

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

@lebaudantoine what about making a deploy folder and moving files from docker in there? suitenumerique/docs#1020 (comment)

Copy link
Collaborator

Choose a reason for hiding this comment

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

sounds good

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.

3 participants