![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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 1 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.