GithubHelp home page GithubHelp logo

radhouen / simple-flask-vagrant-setup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clovisphere/simple-flask-vagrant-setup

0.0 1.0 0.0 27 KB

Simple Flask app setup with Vagrant and Ansible

Python 100.00%

simple-flask-vagrant-setup's Introduction

Flask-Vagrant-Setup

total number of forks GitHub stars

Configure a Flask app on a VM using Vagrant, with provisioning handled by Ansible i.e setting up python, virtualenv, nginx, gunicorn, etc.

Prerequisite

You need to install:

I will be using VirtualBox for this setup, you can grab a copy for your OS here.

Quick start

  1. clone this repo and cd into it:
git clone [email protected]:clovisphere/Flask-Vagrant-Setup.git && cd Flask-Vagrant-Setup
  1. Boot up your Vagrant environment:
vagrant up

(*) If you get an HTTP 500, try doing a:

vagrant up --provision or vagrant reload --provision

This may take less or more than a minute depending on your internet connection (so be patient).

Vagrant runs the virtual machine without a UI. To prove that it is running, you can SSH into the machine:

vagrant ssh

You'd be seeing a welcome message like:

Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-139-generic x86_64)
.
.
.
.

Now logout by typing: logout

Access app

Point your browser to: http://10.0.0.5, you'd see a fancy "Hello" message:-)

Credit
  • Aaron Oxborrow, without whom I would have spent many more hours trying to understand vagrant-ansible provisioning.

simple-flask-vagrant-setup's People

Contributors

clovisphere avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.