npm install
pip install -r requirements.txt
- Run command in terminal (in your project directory):
npm run build
. This will update anything related to yourApp.js
file (sopublic/index.html
, any CSS you're pulling in, etc). - Run command in terminal (in your project directory):
python3 app.py
- Preview web page in browser 'localhost:8080/' (or whichever port you're using)
- Create a Heroku app:
heroku create --buildpack heroku/python
- Add nodejs buildpack:
heroku buildpacks:add --index 1 heroku/nodejs
- Push to Heroku:
git push heroku main