using forever and syntax
-
I've been trying to set up forever to monitor a nodejs project and to restart when I update files but I've been running into issues. I need forvere to ignore some files and I noticed a couple of references to a .foreverignore file you can use to do this but have found no documentation about it's syntax or how to use it. Anyone have any experience with this or can you offer a good alternative?
-
This isn't for nodeBB, it's another project, but with nodeBB you could still use forever to monitor the nodeBB launcher for redundancy.
Is there a decent alternative to forever that will watch for file changes since the lack of documentation with forever is more than a little annoying.
-
@sp4rkr4t You can use the
-w
or--watch
option (I forget which one it is) to automatically restart when a certain file changes. Supervisor also has a watch mode.For NodeBB, the command is:
supervisor -q --extensions 'node|js|tpl' -- app "$@"