-
Notifications
You must be signed in to change notification settings - Fork 945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Base path (-p PATH) not working #258
Comments
The |
Ok, but isnt setting the 'forever config path' done using -p? If so, it doesnt seem to be working for me. If not, is that possible? Thanks. |
I take it back, that option is actually broken. A workaround: |
Why isn't this merged yet? |
The -p option is still remains broken. This is also a source of "forever list" not showing the processes type of errors: if HOME is not defined Forever will fail to read ~/.forever and fail to communicate with the monitor. Many upstart systems will run without a HOME env., so while Forever happily starts even if the directory cannot be created, you then cannot use the "list" or "stop" commands on the CLI. |
Exactly, that's the actual problem I'm having with it. I'm a weird environment without a HOME directory and it's not letting me stop or restart. I believe this is the source of the problem! Here are 2 other weird bits: Shouldn't it at least tell me it's trying to read logs from where I tell it logs will be? Aren't I setting the root by using
|
And still the issue in 2016 ;) |
The -p flag isn't working, but what is working is to set the environment variable |
Installing forever locally (not -g) and trying to set the log file on the CLI with the following command returns the following error:
$ ./node_modules/forever/bin/forever start -p
pwd
-l logs/forever.log -o logs/out.log -e logs/err.log --pidFile pids/forever.pid server.js...
Error: ENOENT, no such file or directory '/path/to/home/.forever/logs/forever.log'
Isnt the -p PATH supposed to set the base for logs and pids, or am I misinterpreting that?
how come -l and -o/-e behave different with respect to their root?
Thanks.
The text was updated successfully, but these errors were encountered: