https://github.com/tobi-de/dokku-envs
Python script to set environment variables on a dokku instance.
https://github.com/tobi-de/dokku-envs
Last synced: 6 months ago
JSON representation
Python script to set environment variables on a dokku instance.
- Host: GitHub
- URL: https://github.com/tobi-de/dokku-envs
- Owner: Tobi-De
- Created: 2020-07-08T08:11:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-08T15:36:21.000Z (about 5 years ago)
- Last Synced: 2025-02-26T09:12:22.263Z (8 months ago)
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dokku-envs
A python script to easilty and quickly set environment variable on a [dokku](http://dokku.viewdocs.io/dokku/) app from local machine.
## Usage
- copy the file to the root of your project or where ever your env file is located.
- make sure you have the [dokku-toolbelt](http://dokku.viewdocs.io/dokku/community/clients/#nodejs-dokku-toolbelt) installed and you have added the dokku remote repository to your project with git```sh
git remote add dokku dokku@dokku_server:your_app_name
```- then run the script from your local pc with :
```sh
python dokku_config.py
```If you are running the script from the remote server using the dokku cli, you need to specify the project name
```sh
python dokku_config.py --app
```## Required
- python >= 3.7
- click == 7.1.2- make sure your env file is structure like this:
```txt
SECRET_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
DEBUG=False
```**or**
```txt
SECRET_KEY="XXXXXXXXXXXXXXXXXXXXXXXXXXXX"
DEBUG="False"
```Each env value on a line.
### Sidenote
You can also use this script for [heroku](https://heroku.com) app, just replace **dokku** by **heroku** everywhere.