Page MenuHomeSoftware Heritage

swh-web: Migrate from sqlite to postgresql
ClosedPublic

Authored by ardumont on Wed, Mar 31, 3:28 PM.

Details

Summary

Providing the swh.web.settings.production is adapted accordingly [1]

This allows the webapp to use a postgresql backend.

Related to T2945

[1] D5392

Test Plan

doco up -d

webapp starts and uses the postgres backend.

Diff Detail

Repository
rDENV Development environment
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ardumont created this revision.
  • Rename db key to production_db key
  • Adapt missed web*.yml configuration according to the main change.
docker/docker-compose.yml
229–230

Those files are missing from the diff I guess.

docker/docker-compose.yml
229–230

oh, that may be well possible, i have too much ungitted noise (that i use once in a while)...

Add missing env files... (nice catch @anlambert)

LGTM

docker/env/01-web-db.env
2

nitpick: missing new line at end of file

This revision is now accepted and ready to land.Thu, Apr 1, 5:45 PM
docker/env/01-web-db.env
2

arf, missed it, sorry