Open bndxn opened 1 year ago
Trying Mo's suggestions of creating the app locally then pushing it. Had to install lightsail plugin (link)
A helpful link on resolving docker dependency issue
cmake issue? https://stackoverflow.com/questions/71470989/python-setup-py-bdist-wheel-did-not-run-successfully
I think this ended up being caused by FROM python:3.8-alpine
, changed to 3.8-slim-buster
and it worked on the mac and ubuntu, but now not working on the pi.
Lightsail seems to make it difficult to upload to an S3 bucket or change roles, so I think I'm going to try another option. Apparently static websites can be hosted with EC2.
Some googling suggested doing this with elastic beanstalk - will try that now.
Installing elastic beanstalk? https://github.com/aws/aws-elastic-beanstalk-cli-setup
Had issues initialising elastic beanstalk, possibly because python was old version. Looked at this (guide), and added symlink sudo ln -s /usr/local/bin/python3 python
. Now Symlink issue - still exploring.
Dealing with issues on two fronts:
Another idea - streamlit https://streamlit.io/
Flask app now deployed to Elastic beanstalk! Uploaded a zip of the file, but still!
Now improving styling: https://www.digitalocean.com/community/tutorials/how-to-make-a-web-application-using-flask-in-python-3#step-3-using-html-templates
Some options
Katya's app here
Guides