-
Notifications
You must be signed in to change notification settings - Fork 0
/
.envrc.sample
30 lines (24 loc) · 1023 Bytes
/
.envrc.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This is a sample .envrc file for use in local development.
# - https://direnv.net/
# - https://github.com/direnv/direnv/wiki/Python
# Rename this file as .envrc in the root of the project.
# --------------------------------------------
export PROJECT="$(pwd)"
export PYTHON_VERSION="$(python3 -c 'import platform; print(platform.python_version())')"
# Delete this lines or install Poetry
export VENV=~/.cache/pypoetry/virtualenvs/<your_poetry_venv>
poetry show --outdated
# Flask
export FLASK_DEBUG=true
export FLASK_ENV=development
export FLASK_APP=app.py
export FLASK_SECRET_KEY="$(python3 -c 'import secrets; print(secrets.token_urlsafe())')"
# API
export NEWSAPI_KEY='set_your_secret_token'
# Docker
# https://github.com/moby/moby/issues/34715
# https://docs.docker.com/develop/develop-images/build_enhancements/
export DOCKER_BUILDKIT=1
# --------------------------------------------
printf "\e[1;33m"; python3 -V; printf "\e[0m"
[[ -d .git ]] && echo && git status --short --branch && git diff --stat && echo