Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Site deploy script
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.

Site deploy script

SplitIceSplitIce Member, Host Rep
edited June 2013 in Tutorials

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.

https://gist.github.com/splitice/5735398

Comments

  • erhwegesrgsrerhwegesrgsr Member
    edited June 2013

    I made something like this years ago, dead simple...

    chmod 777 ${DOMAIN}_c -R

    NO! STOP NOW!

    Nobody should run this, you evidently know 0 about security...


    --preserve

    This does the chmod...

  • SplitIceSplitIce Member, Host Rep
    edited June 2013

    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.

Sign In or Register to comment.