Comments (6)
I see that documentation supports this on the home page, but it hasn't worked for me. Here's the code I run.
ssh user@server forever stop /path/to/app.js
rsync app.js user@server:/path/to/app.js
ssh user@server forever start /path/to/app.js
Start always works, but stop just tells me it can't find a process at that index so I end up getting multiple processes started each time run, but none stopped.
from forever.
That's a error in the documentation. Forever is not designed to work with script names because it is impossible to disambiguate the following behavior:
$ forever start myapp.js $ forever start myapp.js $ forever stop myapp.js
Sometimes you may want to start multiple instances of a script running concurrently, and I haven't thought up a good way to handle that scenario which is why I chose indexes.
I will take this under consideration though. Thanks
from forever.
Hi there, I've stumbled upon the same problem so made a quick 'workaround', which you can review at any time: ActiveUnits@869b824
I can create a pull request if you need that, however the change is rather trivial (+ needs refractoring anyway).
Best regards and even bigger kudos for the well done job with forever,
Boris
from forever.
Fixed in 14c7aa8 ... @outbounder went a different way for the implementation so it wasn't limited to bin/forever usage. Thanks for the suggestion.
from forever.
Oh, and the expected behavior is that calling 'forever stop myapp.js' will stop ALL instances of myapp.js running via forever so be aware.
from forever.
Perfect, thanks you guys! I think this will helpful.
from forever.
Related Issues (20)
- Windows 10: current version of forever ? HOT 1
- forever/bin/monitor still keep the output log File descriptor in memory although i deleted them HOT 1
- Vulnerable dependencies on [email protected] HOT 3
- Run forever script on Windows, show processing but not forever processes running
- [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (1505) HOT 3
- security fix: pin or replace `colors` dependency HOT 14
- Running the "forever list" on ubuntu showing the following output HOT 3
- stopall gets stuck sometimes
- --plain flag is ignored/does not work in forever 4.0.3 HOT 2
- latest version has vulnarable dependencies HOT 1
- Uptime format
- Issue starting multiple servers in one command
- any guide for next js 13?
- how to find the exit reason of process HOT 1
- AIX 7.3 TL 1 forever errors
- how to save old history log instead of delete.. HOT 1
- forever --version Can run, but there are errors(v4.0.3) HOT 1
- redhat 9 enterprise clean install, getting Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
- uptime format
- Log Bigsize
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forever.