Update environment variable section to reflect new config plugin

This commit is contained in:
rhy-jot committed 2013-11-11 21:05:11 -08:00
1 parent a0b7831b08
commit dd0fe5eeb1
1 file changed
+9 -8
+9 -8
View File
@@ -75,16 +75,17 @@ SSH onto the server, then execute:
$ dokku delete myapp $ dokku delete myapp
## Environment setup ## Environment variable management
Typically application requires some environment variables to be set up for proper run. Environment variables might contain some private data, like passwords and API keys, so it's not recommend to store them as part of source code. Typically an application will require some environment variables to run properly. Environment variables may contain private data, such as passwords or API keys, so it is not recommend to store them in your application's repository.
To setup environment for your application, create file `/home/dokku/APP_NAME/ENV`. This file is a script that would expose all required environment variables, like: The `config` plugin provides the following commands to manage your variables:
```
export NODE_ENV=production config <app> - display the config vars for an app
export MONGODB_PASSWORD=password config:get <app> KEY - display a config value for an app
config:set <app> KEY1=VALUE1 [KEY2=VALUE2 ...] - set one or more config vars
Next time the application is deployed, those variables would be exposed by `start` script. config:unset <app> KEY1 [KEY2 ...] - unset one or more config vars
```
## SSL support ## SSL support