The blog about containerisation, virtual machines and useful shell snippets and findings

Oneliner for using environment variables in command line

example for Django

file

DATABASE_ENGINE=django.db.backends.sqlite3
DATABASE_NAME=database.sqlite3
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_HOST=
DATABASE_PORT=
env $(cat .env | xargs) ./manage.py runserver --settings=settings