From 0adccd89b48887e83bfcf238edddc665c8b14189 Mon Sep 17 00:00:00 2001 From: Sven Efftinge Date: Sun, 21 Jun 2020 12:42:44 +0000 Subject: [PATCH] Added Dev Environment as code --- .gitpod.yml | 12 ++++++++++++ .theia/settings.json | 3 +++ README.md | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .gitpod.yml create mode 100644 .theia/settings.json diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..f02ada5 --- /dev/null +++ b/.gitpod.yml @@ -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 diff --git a/.theia/settings.json b/.theia/settings.json new file mode 100644 index 0000000..47b2bd0 --- /dev/null +++ b/.theia/settings.json @@ -0,0 +1,3 @@ +{ + "python.pythonPath": "/home/gitpod/.pyenv/shims/python" +} \ No newline at end of file diff --git a/README.md b/README.md index 82e3e48..c110232 100644 --- a/README.md +++ b/README.md @@ -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.