Skip to content

Instantly share code, notes, and snippets.

@andreyp
Created September 22, 2011 11:02
Show Gist options
  • Save andreyp/1234545 to your computer and use it in GitHub Desktop.
Save andreyp/1234545 to your computer and use it in GitHub Desktop.
For quick change root_dir without change webserver config
#! /bin/sh
CURRENT_DIR=/home/andrey/projects/current
PROJECT_DIR=/home/andrey/projects
PROJECT=$1
DIR=$2
rm $CURRENT_DIR/$PROJECT
ln -s $PROJECT_DIR/$DIR $CURRENT_DIR/$PROJEC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment