O'Reilly logo

Instant Flask Web Development by Ron DuPlain

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying to the world (Advanced)

Once satisfied with your application, you can deploy your application which would be available to the world.

Getting ready

You need a computer which is online and accessible to your target users. Install Python and place requirements.txt in a folder where you have command-line access, just as we did for your development environment (virtualenv is production-appropriate), then create your database tables. You can deploy to any operating system: Windows and any Unix-like systems (including Mac OS X).

How to do it...

  1. From a clean Ubuntu 12.04 server installation:
    $ sudo apt-get update && sudo apt-get install nginx
    $ # Load config into /etc/nginx/sites-available/default
    $ sudo service nginx restart
    $ pip install gunicorn ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required