Comments (1)
So pm2 would be a manager for NodeJS, not for other application types. It can probably be abused to make your use case work, but that doesn't mean it's supported. With this I'm trying to say: find something specific for Dart.
Having said that, the process.send method uses an IPC channel to communicate to its parent (if any). Dart does not have cross OS IPC so you'd need to find or make your own implementation. If your target OS is Linux, you go with Domain Sockets and if your OS is windows you go with named pipes.
Where the domain socket is located or what is the name of the named pipe for NodeJS I'm not sure. You'll need to hijack it and then mimic the process.send method that way to accomplish what you want.
But again, you should find a different solution than PM2 for dart applications.
from pm2.
Related Issues (20)
- pm2运行js文件,如果js文件有和终端交互的 该怎么运行呀(比如输入1、2) HOT 7
- pm2 freezes at most commands HOT 1
- Cannot join mount namespace of pid 1: Operation not permitted
- PM2 does not correctly send SIGINT to individual processes as it opens more threads HOT 1
- can we run .wasm file
- bug
- TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
- PM2 CLI Config File Name/Reference Anomaly
- SPA with basehref causes ENOENT
- Why can't I use TSX? Please help me translate this. HOT 1
- CLOSE
- Gives error cannot resolve pty.js and test.js
- PM2 Bucket is not launching on pm2 website
- [PM2] Spawning PM2 daemon with pm2_home/root/.pm2 HOT 1
- Unable to start scripts through npm
- `pm2 show` should display exp_backoff_restart_delay value if specified
- [RFC] - What can be the pros and cons if we use the PM2 with the node apps in Openshift and Kubernetes
- pm2 : Script /usr/bin/java had too many unstable restarts (16). Stopped. "errored"
- pm2 start app returning 502
- How to implement cross server application management in PM2 HOT 2
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 pm2.