Saturday, April 4, 2015

Switching between PHP applications @localhost

If you are working on multiple PHP apps, switching between them is a pain. I have found the following method to be quite convenient.

  • Manage multiple projects in their separate directories, for example ~/projects/source/AppA and ~/projects/source/AppB
  • Delete /var/www and make it a soft link pointing to the appropriate application you are working on
  • Maintain a simple script 'switchApp' which will delete the soft link and recreate it by making it point to the appropriate project

 

 

No comments: