(readme) Update restart command usage (#2805)

After 2.2 to 2.4 upgrade `restart` doesn't remember the named env it was deployed to
This commit is contained in:
Jaime Agudo 2017-05-21 01:42:52 +02:00 committed by vmarchaud
parent 64b0793d19
commit aeb6137d28

View File

@ -156,9 +156,9 @@ $ pm2 stop <app_name|id|'all'|json_conf>
$ pm2 restart <app_name|id|'all'|json_conf>
$ pm2 delete <app_name|id|'all'|json_conf>
```
To make sure it re-evaluates enviroment variables in your `json_conf` use
To make sure it re-evaluates enviroment variables declared in your `json_conf` pass it as argument, and optionally your custom `env` name from your `json_conf` if any:
```bash
$ pm2 restart <json_conf>
$ pm2 restart <json_conf> [--env <env_name>]
```
To have more details on a specific process: