
Security News
Suno Breached via Shai-Hulud Worm, Leaked Code Exposes AI Music Scraping
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.
lofter-pm2
Advanced tools
简化lofter启动pm2服务时的配置,解决overmind环境中同一pm2应用可能会被分配到同一台机器导致应用之间互相关闭的问题。
lofter-pm2 start test/server/index.js
| 参数名 | 参数描述 | 默认值 | 参数值 |
|---|---|---|---|
| mode | 运行方式 | development | development|production |
| name | 自定义服务名称 | node-server | |
| rootDir | 运行的目录 | 当前命令运行的目录 |
lofter-pm2 start test/server/index.js -- --yourKey=yourValue
lofter-pm2 stop test/server/index.js
| 参数名 | 参数描述 | 默认值 | 参数值 |
|---|---|---|---|
| rootDir | 运行的目录 | 当前命令运行的目录 |
lofter-pm2 status test/server/index.js
| 参数名 | 参数描述 | 默认值 | 参数值 |
|---|---|---|---|
| rootDir | 运行的目录 | 当前命令运行的目录 |
const lofterPM2 = require('lofter-pm2');
lofterPM2.start({
mode: 'development', // 可选, development or production, 默认 development
name: 'server-name', // 可选
rootDir: process.cwd(), // 可选,默认为命令运行的文件夹
script: './server/index.js', // 必填,运行的js文件地址,相对于 rootDir
argv: ['--yourKey','yourValue'] // 可选,附带服务需要的参数
})
lofterPM2.stop({
rootDir: process.cwd(), // 可选,默认为命令运行的文件夹
script: './server/index.js', // 必填,运行的js文件地址,相对于 rootDir
})
lofterPM2.status({
rootDir: process.cwd(), // 可选,默认为命令运行的文件夹
script: './server/index.js', // 必填,运行的js文件地址,相对于 rootDir
})
FAQs
lofter pm2 快速部署
The npm package lofter-pm2 receives a total of 6 weekly downloads. As such, lofter-pm2 popularity was classified as not popular.
We found that lofter-pm2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.

Security News
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.