Added Dev Environment as code

This commit is contained in:
Sven Efftinge 2020-06-21 12:42:44 +00:00
parent 02e4b67015
commit 0adccd89b4
3 changed files with 16 additions and 1 deletions

12
.gitpod.yml Normal file
View File

@ -0,0 +1,12 @@
tasks:
- before: |
export FLASK_APP=microblog.py
init: |
pip install setuptools==45 # see https://github.com/pypa/setuptools/issues/2017#issuecomment-605354361
pip install -r ./requirements.txt
flask db upgrade
command: |
flask run
ports:
- port: 5000
onOpen: open-preview

3
.theia/settings.json Normal file
View File

@ -0,0 +1,3 @@
{
"python.pythonPath": "/home/gitpod/.pyenv/shims/python"
}

View File

@ -1,3 +1,3 @@
# Welcome to Microblog! # Welcome to Microblog! [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/miguelgrinberg/microblog)
This is an example application featured in my [Flask Mega-Tutorial](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world). See the tutorial for instructions on how to work with it. This is an example application featured in my [Flask Mega-Tutorial](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world). See the tutorial for instructions on how to work with it.