Howdy, Stranger!

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

Advertise on LowEndTalk.com
Site deploy script
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

Site deploy script

SplitIceSplitIce Member, Provider
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

X4B - DDoS Protection: Affordable Anycast DDoS mitigation with PoPs in the Europe, Asia, North and South America.
Latest Offer: Brazil Launch 2020 Offer

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, Provider
    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.

    X4B - DDoS Protection: Affordable Anycast DDoS mitigation with PoPs in the Europe, Asia, North and South America.
    Latest Offer: Brazil Launch 2020 Offer
  • It's just good for your personal use.

Sign In or Register to comment.