
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
grunt-ssh-deploy-release
Advanced tools
Create an archive of "localPath" (except excluded folders). Copy this archive to remote server using SCP. Decompress the release on remote server. Create "shared" folders symlink. Create release symlink. Clean temporary files and old releases.
npm install grunt-ssh-deploy-release
grunt.config.set('ssh-deploy-release', {
// Global options
// ==============
options: {
// Local folder to deploy
localPath: 'www',
// Excluded local folders
exclude: [
'tmp/**',
'images/**',
],
// Shared folders (use symlink)
// Example : 'sharedFolder' : 'linkName'
share: {
'images': 'assets/images',
}
},
// Environments
// ============
// Preproduction
preproduction: {
options: {
host: 'hostname',
username: 'username',
password: 'password',
deployPath: '/opt/path/to'
}
},
// Production
production: {
options: {
host: 'hostname',
username: 'username',
password: 'password',
deployPath: '/opt/path/to'
}
}
});
grunt ssh-deploy-release:environmentName
Port used to connect to remote server. Default : 22
Remote server hostname.
Username used to connect to remote server.
Password used to connect to remote server.
Absolute path on remote server where release will be deployed.
SCP connection timeout duration. Default : 20000
Name of the current release symbolic link. Relative to deployPath.
Defaut : 'www'
Name of the folder containing shared folders. Relative to deployPath.
Default : 'shared'
Name of the folder containing releases. Relative to deployPath.
default : 'releases'
Name of the local folder to deploy. Default : 'www'
Name of the archive. Default : 'release.zip'
Number of releases to keep on remote server. Default : 3
Name of the release. Must be different for each release. Default : Use current timestamp.
List of paths (glob format) to not deploy. Paths must be relative to localPath.
Default : []
List of folders to "share" between release. A symlink will be created for each item.
Keys = Folder to share (relative to sharedFolder)
Values = Symlink path (relative to release folder)
FAQs
Grunt plugin for deploying release on remote server over ssh.
The npm package grunt-ssh-deploy-release receives a total of 6 weekly downloads. As such, grunt-ssh-deploy-release popularity was classified as not popular.
We found that grunt-ssh-deploy-release 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
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.