Forums

deploy standalone app on pythonanywhere like heroku with procfile

I have this structure:<br>

app.py
data.csv
requirements.txt
procfile

On heroku I can simply deploy them and it will run procfile but on pythonanywhere I can't understand how to deploy standalone app, I just created manual configuration web app and then in WSGI file I have no idea how to add something like:

web: panel serve --address="0.0.0.0" --port=$PORT app.py --allow-websocket-origin=app_name.pythonanywhere.com

Please advice me what should I do?<br> Thank you

If you have correctly set web app, you do not need any special command to run.

For example, you can deploy a flask app like that.

Thank you for your response <br> This app is works fine in heroku but still I don't know how to deploy it on pythonanywhere? <br> I don't want use Flask, I just want to have it as a standalone app but I can't use procile here and for running app I need to run this command: <br> panel serve app.py

The only web apps you can run on PythonAnywhere are wsgi ones that you configure on the "Web" page or with API.