git clone https://github.com/GavinSlusher/Land_of_Lakes_340_Compliant.git- Make sure you're in the right directory. If in flip, run
bash. virtualenv LoL -p $(which python3)source ./LoL/bin/activateto run the virtual environmentpip3 install --upgrade pippip install -r requirements.txt
- If not running the virtual environment -
source ./LoL/bin/activate export FLASK_APP=run.pyflask run
- If not running the virtual environment -
source ./LoL/bin/activate export FLASK_APP=run.pypython -m flask run -h 0.0.0.0 -p [port number] --reload
Now, your website should be accessible at http://flipN.engr.oregonstate.edu:YOUR_PORT_NUMBER
- Follow steps 1 and 2 above if not already done
gunicorn run:app -b 0.0.0.0:YOUR_PORT_NUMBER -D
ps ufx | grep gunicorn- Find the PID (second column in the above output).Note that the grep process also shows up in the output. You want to kill the other process, which is most likely the second process in the above output.
kill [PID]