
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
lp-deployer
Advanced tools
Run pre, post, local and remote scripts; and upload files (creating directories if necessary) if you need to. All through SSH
Run pre, post, local and remote scripts; and upload files (creating directories if necessary) if you need to. All through SSH
yarn global add lp-deployer
lpd configfile.json
where configfile.json is the configuration file. Or
lpd
and it will look for a file called lp-deployer.json in the current directory with the configuration.
The configuration file should be like this:
{
"server": "svrstaging",
"commands": {
"pre": [
{ "location": "local", "script": "yarn run build-prod" },
{ "location": "remote", "script": "systemctl stop yourawesomeapp_service", "continueOnError": true }
],
"post": [
{ "location": "remote", "script": "yarn --prod" },
{ "location": "remote", "script": "systemctl start yourawesomeapp_service" },
{ "location": "local", "script": "knex migrate:latest --env={{{knexEnvironment}}}" }
]
},
"upload": {
"directory": "/opt/yourapp",
"items": [
"app/routes",
"app/models",
"public",
"config.js",
"package.json",
"server.js"
]
}
}
this means:
The target server to upload files and / or run remote commands.
Here you have two groups: pre and post. The pre group will be run before uploading files to the target, and the post group after. In each command you can specify if it has to be run locally in the computer from where you're deploying, or remotely in the target server.
By default this is false, and will halt the whole process if this command fails. When you set it to true you're saying that you want to continue with the other commands even if this one fails.
Where you want to copy the files and directories to.
A list of files and directories that you want to upload. If you specify a file it will be uploaded, if it's a directory it'll upload all files in it. The deployer will create all missing remote directories needed to complete this task.
Easy! Have many configuration files, one for each environment.
You could use the lpd-deployer.json file as your default one, and for example lpd-deployer-staging.json for staging, lpd-deployer-prod.json for production and so on.
FAQs
Run pre, post, local and remote scripts; and upload files (creating directories if necessary) if you need to. All through SSH
We found that lp-deployer 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.
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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.