Skip to content

jacob-zhang-213/docker-cloud-flask-demo

 
 

Repository files navigation

Flask Skeleton -

Flask starter project... https://cloud.docker.com this is a demo

Quick Start

Basics

  1. Activate a virtualenv
  2. Install the requirements

Set Environment Variables

Update skeleton/server/config.py, and then run:

$ export APP_SETTINGS="skeleton.server.config.DevelopmentConfig"

or

$ export APP_SETTINGS="skeleton.server.config.ProductionConfig"

Create DB

$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py create_admin
$ python manage.py create_data

Run the Application

$ python manage.py runserver

So access the application at the address http://localhost:5000/

Want to specify a different port?

$ python manage.py runserver -h 0.0.0.0 -p 8080

Testing1

$ tox

Docker

docker run -d -p 8080:5000 imooc-course/docker-cloud-demo:latest

this is a pull request test this is a pull request test2

About

学习测试

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 70.4%
  • HTML 25.0%
  • Shell 1.6%
  • Mako 1.6%
  • Dockerfile 0.9%
  • JavaScript 0.3%
  • CSS 0.2%