Last active
October 1, 2018 16:07
-
-
Save amonmoce/283060ec93c10955ba64242e51fe88cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu 16.04 (default Python 3.5), not Ubuntu => go install | |
sudo apt-get install software-properties-common | |
sudo apt-add-repository universe | |
sudo apt-get update | |
sudo apt-get install python-pip python3-dev python3-venv | |
# Environnements folders | |
mkdir venvs | |
# Specify the system python3 installation | |
python3 -m venv venvs/flaskproj | |
# Activate the virtualenv | |
source ~/venvs/flaskproj/bin/activate | |
pip install flask gunicorn | |
# Install Ngnix | |
sudo apt install nginx | |
sudo ufw allow 'Nginx HTTP' | |
systemctl status nginx | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment