GithubHelp home page GithubHelp logo

webb_app_flask's Introduction

Tutorial being followed: blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world

Don't forget to run source venv/bin/activate

== docker startup ==

docker run --name mysql -d -e MYSQL_RANDOM_ROOT_PASSWORD=yes
-e MYSQL_DATABASE=snowblunt_webb -e MYSQL_USER=snowblunt_webb
-e MYSQL_PASSWORD=
mysql/mysql-server:5.7 docker run --name elasticsearch -d -p 9200:9200 -p 9300:9300 --rm
-e "discovery.type=single-node"
docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.1 docker run --name redis -d -p 6379:6379 redis:3-alpine docker run --name rq-worker -d --rm -e SECRET_KEY=my-secret-key
-e MAIL_SERVER=smtp.googlemail.com -e MAIL_PORT=587 -e MAIL_USE_TLS=true
-e MAIL_USERNAME= -e MAIL_PASSWORD=
--link mysql:dbserver --link redis:redis-server
-e DATABASE_URL=mysql+pymysql://snowblunt_webb:@dbserver/snowblunt_webb
-e REDIS_URL=redis://redis-server:6379/0
--entrypoint venv/bin/rq
snowblunt_webb:latest worker -u redis://redis-server:6379/0 snowblunt_webb-tasks docker run --name snowblunt_webb -d -p 8000:5000 --rm -e SECRET_KEY=my-secret-key
-e MAIL_SERVER=smtp.googlemail.com -e MAIL_PORT=587 -e MAIL_USE_TLS=true
-e MAIL_USERNAME= -e MAIL_PASSWORD=
--link mysql:dbserver --link redis:redis-server
-e DATABASE_URL=mysql+pymysql://snowblunt_webb:@dbserver/snowblunt_webb
-e REDIS_URL=redis://redis-server:6379/0
snowblunt_webb:latest

Debug

docker logs snowblunt_webb

webb_app_flask's People

Contributors

robertsvensk avatar dependabot[bot] avatar

Watchers

 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.