Skip to content

Instantly share code, notes, and snippets.

@amonmoce
Last active October 1, 2018 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save amonmoce/283060ec93c10955ba64242e51fe88cb to your computer and use it in GitHub Desktop.
Save amonmoce/283060ec93c10955ba64242e51fe88cb to your computer and use it in GitHub Desktop.
# 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