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

A vagrant box for setting a flask application with mysql

License

Notifications You must be signed in to change notification settings

prismic/flask-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A vagrant box for setting a flask application with mysql

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published