Post #3683027
2026-05-07 13:52 UTC
@nanorepublica@indiehackers.social I haven't kept up with the project for a bit. Does that mean we'd run the server with these two commands?
$ manage.py server --dev
$ manage.py server --prod
Replies (1)
-
@nanorepublica@indiehackers.social 2026-05-07 14:32
@ehmatthes@fosstodon.org no I'm aiming for a single command of $ manage.py server web Then in settings.py you would configure the different backends, so: ``` if DEBUG: PROCESSES={'web': 'path.dev.backend'} else: PROCESSES={'web': 'path.prod.backend'} ``` or not having the conditional and having 2 different keys for dev & prod: ``` PROCESSES={ 'dev': 'path.dev.backend', 'web': 'path.prod.backend' } ``` Part of me putting out the post is to gather opinions about this direction.