#set up digital ocean
#https://www.youtube.com/watch?v=kDRRtPO0YPA&t=654s
#gninx
ect/nginx/sites-enabled
nano flask_settings
update to new porrt
ect/ngins/sites-available
do same update
#restart nginx
/etc/init.d/nginx restart
ssh in
move in folder
sudo apt-get update
sudo apt-get install python-pip nginx OR apt install python3-pip nginx
pip or pip3 install keras tensorflow h5py six numpy
#make sure the
#virutal env assign python 3 if you need it
virtualenv -p python3 ENVNAME
source ENVNAME/bin/activate
python --version
#check what is running on which port
netstat -lp #for open to recieve and
# to kill process use the following and those are back ticks.
kill `sudo lsof -t -i:8000`
apt install python3-pip
pip install flask gunicorn
pip3 install install keras tensorflow h5py six numpy
#launch gunicorn and make sure the port if set to 5000
gunicorn APPFILENAME:app
numpy, scipy, h5py, keras-applications, keras-preprocessing, keras, protobuf, markdown, grpcio, werkzeug, tensorboard, termcolor, astor, gast, absl-py, tensorflow
# configure nginx
JUST TAKE NOTES NEXT TIEM YOU DO IT>>
virual env with python3
pip install gunicorn flask