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.
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
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.
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.
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,
Beautiful
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)