You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,16 @@ There are [several examples][1] designed to test the fault tolerance of forever.
91
91
$ forever -m 5 examples/error-on-timer.js
92
92
```
93
93
94
+
### Changing where forever writes files
95
+
96
+
By default `forever` places all of the files it needs into `/$HOME/.forever`. If you would like to change that location just set the `FOREVER_ROOT` environment variable when you are running forever:
97
+
98
+
```
99
+
FOREVER_ROOT=/etc/forever forever start index.js
100
+
```
101
+
102
+
Make sure that the user running the process has the appropriate privileges to read & write to this directory.
103
+
94
104
## Using forever module from node.js
95
105
In addition to using a Forever object, the forever module also exposes some useful methods. Each method returns an instance of an EventEmitter which emits when complete. See the [forever cli commands][2] for sample usage.
0 commit comments