This is a vagrant box for working with flask and mysql. nginx + uwsgi support is coming.
- Vagrant > 1.5 (http://vagrantup.com) for creating the VM
- VirtualBox > 4.3.10 (http://www.virtualbox.org) for the VM container
- Make sure all requirements are satisfied. Clone this project and
cd
into the project root vagrant up
to provision the virtualbox VM
vagrant ssh
to go into the servercd /vagrant/src
python hello.py
to start the development server- Connect to the MySQL server:
- Server: 192.168.66.66
- Port: 3306
- Username: testuser
- Password: testuser_pwd
- Point your browser to http://192.168.66.66:5000
- 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 theprivate_network
IP address