Skip to Content »

FlashApe » Testing locally, project directory structures, and symbolic links

 Testing locally, project directory structures, and symbolic links

  • July 25th, 2007
  • 4:02 pm

With all of my projects, i follow the same directory structure, which looks like:

/Client_Name
	/Project_Name
		/_assets
		/classes
		/deploy
		/fla

It’s a simple and effective structure that allows me to easily sync everything in CVS. However, I was also keeping a separate copy of the ‘deploy’ folder within my local webserver for local testing, and trying to manually keep the two in sync.

At first, in order to solve the problem of keeping the two folders in sync i was looking for a program that would just sync the folders whever a file was saved into a folder that was being ‘watched’. Nothing really panned out there, although i did find a few apps that would sync two folders whever i told it to (I wanted somethign more automatic than that).

So yesterday, I was talking to a coworker about it and he told me I was going about it all wrong, and the solution is really simple. All I needed to do was set up symbolic links within the webserver, and point those symbolic links to my deploy folder within the project structure. Symbolic links are just like aliases, but hold a slightly different meaning, the main one being that the webserver will follow those links to their target, but it wouldn’t do that with aliases. He then busted out the terminal and set one up to show me how to do it with a simple ‘ln -s’ command. Now, I’m ok with the terminal, but I’d rather have something that can do it within the GUI, so I did a quicksearch and found SymbolicLinker, which although pretty old still works fine. Now i can right-click on any file or folder to make a symbolic link.

2 People had this to say...

Gravatar
  • Roy Klein
  • July 29th, 2007
  • 12:20 am

What are some of the better programs you found for syncing files?

Gravatar
  • rich
  • July 30th, 2007
  • 3:16 pm

honestly, i can’t remember which ones i tried. I know i got them off of m acupdate though: http://www.macupdate.com/search.php?arch=all&keywords=sync+folders&os=macosx

Want your say?

* Required fields. Your e-mail address will not be published on this site


You can use the following XHTML tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>