New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Site deploy script
Just a quick script I use on most of my servers to revision and deploy site versions.
How it works: It relies you you having a dev.${DOMAIN} folder which contains your active development version. When you deploy a copy is made, your old active site is moved to revisioned folder and the copy is moved into place. Almost instant.
Installation: Just put it into /var/www or what ever htdocs directory you use.
Comments
I made something like this years ago, dead simple...
NO! STOP NOW!
Nobody should run this, you evidently know 0 about security...
This does the chmod...
I should apologize I made this commented version from the script on my local development server. And should have ran a more critical eye over it before posting it. The local servers permissions are non existent (no excuse, but hey we all have those corners we cut occasionally).
Revised it for better security.
It's just good for your personal use.