- Fork the repository to your account
- Clone the repository to your machine
- Create a new environment and install the requirements
- Customize the dummy text a bit
- Make sure it runs on your local machine
python dashboard.py
You should be able to view the website at "http://0.0.0.0:8050/" or "http://localhost:8050/"
- Create an account at "https://pythonanywhere.com"
- Log in and open a Bash console
- Clone your updated app into the home directory
- Make a virtual environment (this time don't use conda if you used it before).
mkvirtualenv dash624env --python=/usr/bin/python3.10
- Install the requirements into your new virtual environment
- Navigate to the pythonanywhere "web" link (in the top right menu in the bash window)
- Click "Add a new web app"
- Click on Flask
- Click on Python 3.10
- Enter the path to dashboard.py in pythonanywhere
- Under the "Virtualenv:" heading write what you named your environment (still in the web tab of pythonanywhere)
- Uncer the "Code:" heading click on the "WSGI configuration file:" link to edit the file, and change
from dashboard import app as application
to
from dashboard import app
application = app.server
- Go back into the "Web" tab, hit reload, and then try the link.
web on pythonanywhere will not aumatically updated based on any github changes, need to pull changes for integration