
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
egg-hot-deploy
Advanced tools
hot-deploy tool for egg project
$ npm i @vivo/egg-deploy --save
.deploy.yml config file in project root directoryConfig arguments
instances - application instance array, example: [{ port: 7008, title: 'egg-node-server' }]
startCommand - nginx start command, default: service nginx start
reloadCommand - nginx config reload, default: nginx -s reload
waitStopTime - waited time to stop application, default: 5000
nginxconcpath - nginx config file path, it is a relative path and also can a absolute path, for example vre-node.conf, but you must contain vre.conf file in nginx config file and reload nginx
# vre-node.conf
upstream vre-node {
server localhost:7007;
server localhost:7008;
}
finally .deploy.yml like this, Example:
instances:
-
port: 7005
title: egg-server-weekly-node-ts-2
-
port: 7006
title: egg-server-weekly-node-ts
nginxConfPath: /etc/nginx/upstream/weekly.conf
startCommand: service nginx start
reloadCommand: nginx -s reload
nginxConfPath: nginx.conf
waitStopTime: 5000
egg-deploy to package.json to scripts{
"scripts": {
"deploy": "egg-deploy start --env=prod --workers=2 --daemon",
"stop": "egg-deploy stop"
}
}
additional: egg-deploy is based on egg-scripts, also have start and stop command,and has same arguments, but title and port is in .deploy.yml file, so don't repeat to write.
FAQs
hot-reload egg.js application
The npm package egg-hot-deploy receives a total of 3 weekly downloads. As such, egg-hot-deploy popularity was classified as not popular.
We found that egg-hot-deploy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.