Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (22 loc) · 975 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 975 Bytes

flask-vagrant

This is a vagrant box for working with flask and mysql. nginx + uwsgi support is coming.

Requirements

Getting Started

  1. Make sure all requirements are satisfied. Clone this project and cd into the project root
  2. vagrant up to provision the virtualbox VM

Starting the Server

  1. vagrant ssh to go into the server
  2. cd /vagrant/src
  3. python hello.py to start the development server
  4. Connect to the MySQL server:
  • Server: 192.168.66.66
  • Port: 3306
  • Username: testuser
  • Password: testuser_pwd
  1. Point your browser to http://192.168.66.66:5000

Changing Parameters

  • To change the database name, username, and password, modify the yaml file in salt/roots/pillar/mysql.sls
  • To change the IP address, modify Vagrantfile and change the private_network IP address