Page MenuHomeSoftware Heritage

Remove indirection swh.web.wsgi to start server
ClosedPublic

Authored by ardumont on Oct 10 2019, 12:04 PM.

Details

Summary

As mentioned in the diff below, already tested both in docker,
staging, and production, everything is fine.

Related D2109
Related D2110

Test Plan

tox

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

There is also a reference to the wsgi module in Makefile.local

This revision now requires changes to proceed.Oct 10 2019, 12:07 PM

Update missing wsgi reference

anlambert added inline comments.
Makefile.local
62–63

I think DJANGO_SETTINGS_MODULE should be set before calling gunicorn here

This revision now requires changes to proceed.Oct 10 2019, 12:13 PM

Set the DJANGO_SETTINGS_MODULE environment variable.

I'm not sure we want to integrate it in the makefile though ¯\_(ツ)_/¯

That could be to the users to determine what they want:

DJANGO_SETTINGS_MODULE=swh.web.settings.development make run-gunicorn-server

I'm not sure we want to integrate it in the makefile though ¯\_(ツ)_/¯

That could be to the users to determine what they want:

This target is used to mimic production behavior so production settings should be set by default from my point of view (this was the previous behavior).

This revision is now accepted and ready to land.Oct 10 2019, 1:12 PM

This target is used to mimic production behavior so production settings should be set by default from my point of view (this was the previous behavior).

Yes, yes, that's why i made it back ;)