1- # django -dotenv-rw
1+ # python -dotenv
22
3- [ ![ Build Status] ( https://travis-ci.org/theskumar/django -dotenv-rw .svg?branch=master )] ( https://travis-ci.org/theskumar/django-dotenv-rw )
3+ [ ![ Build Status] ( https://travis-ci.org/theskumar/python -dotenv.svg?branch=master )] ( https://travis-ci.org/theskumar/django-dotenv-rw )
44
55Forked from awesome but simpler [ django-dotenv] ( https://github.com/jacobian/django-dotenv ) . Removes black magic, makes loading .env in settings.py easier, adds remote .env file management capabilities. Works as a drop-in replacement for django-dotenv.
66
@@ -22,7 +22,7 @@ doesn't. Let's fix that.
2222## Installation
2323
2424```
25- pip install git+ssh://git@github.com/theskumar/django -dotenv-rw .git
25+ pip install git+ssh://git@github.com/theskumar/python -dotenv.git
2626```
2727
2828# Usage
@@ -69,48 +69,48 @@ Usage is designed to mirror the heroku config api very closely.
6969Get all your remote config info with ` fab config `
7070```
7171$ fab config
72- [...webfactional .com] Executing task 'config'
73- [...webfactional .com] run: dotenv -f /home/me/webapps/myapp/myapp/.env
74- [...webfactional .com] out: DJANGO_DEBUG="true"
75- [...webfactional .com] out: DJANGO_ENV="test"
72+ [...example .com] Executing task 'config'
73+ [...example .com] run: dotenv -f /home/me/webapps/myapp/myapp/.env
74+ [...example .com] out: DJANGO_DEBUG="true"
75+ [...example .com] out: DJANGO_ENV="test"
7676```
7777
7878Set remote config variables with ` fab config:set,[key],[value] `
7979```
8080$ fab config:set,hello,world
81- [...webfactional .com] Executing task 'config'
82- [...webfactional .com] run: dotenv -f /home/me/webapps/myapp/myapp/.env set hello world
83- [...webfactional .com] out: hello="world"
81+ [...example .com] Executing task 'config'
82+ [...example .com] run: dotenv -f /home/me/webapps/myapp/myapp/.env set hello world
83+ [...example .com] out: hello="world"
8484```
8585
8686Get a single remote config variables with ` fab config:get,[key] `
8787```
8888$ fab config:get,hello
89- [...webfactional .com] Executing task 'config'
90- [...webfactional .com] run: dotenv -f /home/me/webapps/myapp/myapp/.env get hello
91- [...webfactional .com] out: hello="world"
89+ [...example .com] Executing task 'config'
90+ [...example .com] run: dotenv -f /home/me/webapps/myapp/myapp/.env get hello
91+ [...example .com] out: hello="world"
9292```
9393
9494Delete a remote config variables with ` fab config:unset,[key] `
9595```
9696$ fab config:unset,hello
97- [...webfactional .com] Executing task 'config'
98- [...webfactional .com] run: dotenv -f /home/me/webapps/myapp/myapp/.env unset hello
99- [...webfactional .com] out: unset hello
97+ [...example .com] Executing task 'config'
98+ [...example .com] run: dotenv -f /home/me/webapps/myapp/myapp/.env unset hello
99+ [...example .com] out: unset hello
100100```
101101
102102Thanks entirely to fabric and not one bit to this project, you can chain commands like so` fab config:set,[key1],[value1] config:set,[key2],[value2] `
103103```
104104$ fab config:set,hello,world config:set,foo,bar config:set,fizz,buzz
105- [...webfactional .com] Executing task 'config'
106- [...webfactional .com] run: dotenv -f /home/me/webapps/myapp/myapp/.env set hello world
107- [...webfactional .com] out: hello="world"
108- [...webfactional .com] Executing task 'config'
109- [...webfactional .com] run: dotenv -f /home/me/webapps/myapp/myapp/.env set foo bar
110- [...webfactional .com] out: foo="bar"
111- [...webfactional .com] Executing task 'config'
112- [...webfactional .com] run: dotenv -f /home/me/webapps/myapp/myapp/.env set fizz buzz
113- [...webfactional .com] out: fizz="buzz"
114- ```
115-
116- That's it. Webfaction , or whoever your non-paas host is, is now 1 facor closer to an easy 12 factor app.
105+ [...example .com] Executing task 'config'
106+ [...example .com] run: dotenv -f /home/me/webapps/myapp/myapp/.env set hello world
107+ [...example .com] out: hello="world"
108+ [...example .com] Executing task 'config'
109+ [...example .com] run: dotenv -f /home/me/webapps/myapp/myapp/.env set foo bar
110+ [...example .com] out: foo="bar"
111+ [...example .com] Executing task 'config'
112+ [...example .com] run: dotenv -f /home/me/webapps/myapp/myapp/.env set fizz buzz
113+ [...example .com] out: fizz="buzz"
114+ ```
115+
116+ That's it. example.com , or whoever your non-paas host is, is now 1 facor closer to an easy 12 factor app.
0 commit comments