Thanks to visit codestin.com
Credit goes to github.com

Skip to content
ysuzuki1986 edited this page Jul 14, 2018 · 2 revisions

setup and start application.

  • if you have already started nginx on your GCP ComputeEngine instance, stop the nginx process.
sudo service nginx stop
  • clone hello-world directory, and change directory to there.

  • install pip and gunicorn

sudo apt install python-pip gunicorn
  • install required package.
sudo pip install flask
  • start gunicorn process.
sudo gunicorn -b 0.0.0.0:80 main:app
Clone this wiki locally