COEN6313
How to come into VM:
- vagrant up ==> start up ur VM
- vagrant status ==> check the status of ur VM
- vagrant ssh [ur VM name]==> come into ur VM
- exit ==> exit ur VM
- vagrant halt ==> power off ur VM
using .venv when u use python:
- in devmachine(VM):
- cd /vagrant/
- source .venv/bin/activate ==> can come into the python virtual environment
- deactivate ==> can exit the virtual environment
''' docker build . -t lifewatcher '''
''' docker run lifewatcher docker run -d -p 80:80 lifewatcher docker status docker start xxx(id of ur container) '''
''' docker exec -it xxx sh '''
In container: mkdir /Downloads And in containe: mkdir /Downloads/images
In container(manually): python LifeWatcher_Web.py Test: in container: curl -i http://0.0.0.0:80/