mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
(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:
parent
64b0793d19
commit
aeb6137d28
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user