Server setup

If you are just testing your app on your personal computer, you can use otree runserver. You don’t need a full server setup.

However, when you want to share your app with an audience, you must use a web server.

Options

Choose which option you need:

You want to launch your app to users on the internet

Use Heroku. Heroku can also be used for lab/field studies, if you prefer cloud hosting over using a local server.

You want to use your Windows computer as an ad-hoc server on your local network

e.g. running a lab study or field study.

You want to use your Mac computer as an ad-hoc server on your local network

e.g. running a lab study or field study.

You want to set up a dedicated Linux server

Ubuntu Linux instructions.

You want to deploy to a dedicated Linux/Windows server using Docker Hub

Docker Hub setup

You want to see other options

See Community resources for some virtual machines created by oTree users.

Next steps

After setting up your server, see Server deployment: final steps.