oTree Forum >

Can I use postgres with devserver?

#1 by lucas

So it seems that devserver always uses sqlite, correct? Is it possible to use postgres with devserver?

Thanks!

#2 by ChristianK

You can start the prodserver locally and give it the usual 8000 port.
see: https://otree.readthedocs.io/en/latest/server/ubuntu.html#testing-the-production-server

Prodserver uses postgres as provided by the environment variable DATABASE_URL.

#3 by lucas

That is exactly what I do when I want to run prodserver.

I'm asking about devserver, though. My understanding is that devserver will allow live changes while prodserver does not (always).

Write a reply

Set forum username