-
Notifications
You must be signed in to change notification settings - Fork 82
🚀(paas) add PaaS deployment scripts, tested on Scalingo #668
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
base: main
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this 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.""" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| """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.""" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DATABASE_URL is a standard name in most PaaS platforms https://doc.scalingo.com/databases/postgresql/getting-started/connecting https://devcenter.heroku.com/changelog-items/438
| mv src/backend/* ./ | ||
| mv src/nginx/* ./ | ||
|
|
||
| echo "3.13" > .python-version No newline at end of file |
There was a problem hiding this comment.
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 @@ | |||
|
|
|||
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good



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