Deployment options, hints

Hi all,

I"m new to this forum and hope I pick the good category for this question and have searched enough on the forum. I’ve created a dash app for the Maven Challenge and want to deploy to somewhere.

Is their an overall topic or thread which sums up free deployment options? And maybe a hint which is the easiest? I had a look at pythonanywhere and wondered if a free account would be enough to deploy. Since I’m inexperienced with deployment to the cloud, at least this variation, it’s very probable that I can not make the distinction between problems because my app has problems & problems because it’s a free deployment option.

Any input will be highly appreciated, Marie-Anne

Render has a free tier and it is really easy to get started. Just connect a GitHub account and select the project you want to deploy.

app.py

from dash import Dash, html

app = Dash(__name__)
server = app.server

# html page layout
app.layout = html.Div(['Hello World!'])

if __name__ == '__main__':
    app.run(debug=False)

Make sure to install gunicorn and have it in your requirements.txt

Language Python3
Build Command pip install -r requirements.txt
Start Command gunicorn app:server

I use Heroku sometimes, where you can host apps for 7USD a month, which is okay.

Now I switched to AWS, for most things they have a free tier for 12 months. This works good as well.

Did you consider using PyCafe? It runs Dash fully in the browser. See our tutorial or see some of the examples on this forum, our featured apps, or some accounts that have many dash examples:

Hi Simon, thank you for your tip. I used pythonanywhere for the challenge. I was looking for something temporary and free. I know. $7 p/m is fine but I also have my workhosting and development/customer php/mysql environment plus sometimes I want to put PowerBI online, it all adds up very rapidly.

Thank you for your tip, PyGuy, I will have a look at Render, I used pythonanywhere for now.

Hi Maarten,

never heard of PyCafe but it certainly looks very cool. I didn’t understand what you meant by “in browser” but it means like codepen. And it even does responsive. Thank you for the tip.

best regards Marie-Anne

1 Like

Hi Marie-Anne,

PyCafe runs dash not on the server but entirely in the users’ browser. The tech behind it is Pyodide/WASM (WebAssembly). This allows PyCafe apps to scale to many users (since no server is running Python at all).

I hope that helps. explain what I mean by “in browser”. Regards,

Maarten

1 Like

Dankjewel! (thank you)

1 Like

This is so cool, my challenge app works (without the two left bugs of pythonanywhere). Thank you! https://py.cafe/info…272/dash-nyc-ridership

Beautiful :+1:
PS: If you include a screenshot, it will also show up here on the forum if you paste a link (add #q=1 to avoid the caching of this by the forum server)