
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
generator-z-maintenance
Advanced tools
An Apache maintenance solution for simple sites using .htaccess.
run npm install generator-z-maintenance -g
After that, you can run yo z-maintenance
from a project to start the
generator.
This generator will provide a basic maintenance.html file, and a set of .htaccess rules, to handle maintenance on a site.
Maintenance can then be activated by uploading an empty "maintenance" file to the project's public folder.
Since the some paths had to be provided as absolutes, every new environment will need adjustments.
So for example for the site: "http://site.com", the needed adjustmens would be to replace every occurances of "public_path/" to an empty string.
Another example would be, if a developer has the project under the "localhost/a/long/path/project" path. The developer then must replace every occurances of "public_path/" to "a/long/path/project/public_path/".
The way the .htaccess file needs to be configured means that it can not be version controlled, since every environment needs a little tweak for every developer. A way to store the htaccess file in the repository, is to save it as ".htaccess.dist" (Think of it as a template file.), so that every developer must "implement" it as ".htaccess", having the latter ignored by the VCS.
This may seem to be a lot of work, but it's a well estabilished way to collaborate on a project. (Just don't deploy "*.dist" files to production environment.)
To see how the Symfony2 Framework uses this pattern, read this article about the configuration.
For an easy to use setup page, which helps implementing these "*.dist" files, please consider using this generator.
FAQs
An Apache maintenance solution for simple sites using .htaccess.
The npm package generator-z-maintenance receives a total of 0 weekly downloads. As such, generator-z-maintenance popularity was classified as not popular.
We found that generator-z-maintenance 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.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.