Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Doing web development I love having all the tools I've grown used to right here at my disposal. Right here, meaning on my local machine. I don't mind popping Vim for a quit edit or config setting on a remote server, but I can't see myself developing in terminal-based apps full time. So here's the question:

I've been using Mamp flawlessly for a number of years, but moving to VM virtual appliances has proved more challenging. For one thing, I am at a loss for how to mirror my 'remote' web-root onto my mac so I can edit files in Textmate or MacVim. It's also nice to be able to save/add/delete locally and not to have to SSH each time I need to make some change.

Keeping things sync'd up is also a challenge. With Mamp, I could simply point my web-root to my dropbox/htdocs folder and presto! All my projects were sync'd up across as many machines as I wanted.

Any insight on a good strategy to tackled this issue would be appreciated!

share|improve this question

migrated from stackoverflow.com Apr 29 '11 at 6:34

This question came from our site for professional and enthusiast programmers.

    
Mirroring is related to backup, but what you really want is to mount a network share. Both are ServerFault topics, voting to move. –  Ben Voigt Apr 29 '11 at 1:58
add comment

1 Answer 1

Not many details given, but you may consider exporting your web root from the server and mounting it on your Mac.

http://support.apple.com/kb/TA22243?viewlocale=en_US shows how to mount an NFS file system on a Mac.

Your web server's sysadmin can configure NFS server for you.

Caveat: Data and password hashes are transmitted in cleartext. This may or may not be a problem, depending on your configuration (trusted / untrusted (public) network between your station and the web server).

share|improve this answer
    
Ughh.. just lost my reply! Lets see if I can reconstitute it... –  Stormbytes May 1 '11 at 12:09
    
Not sure what other details you'd like. I'm using a JumpBox-Lamp running on VirtualBox. I'm developing in Mac OSX 10.6.x. I'd like to be able to mount my (JB) web-root in the OSX Finder so I can use OSX development tools. Thus far I'm using Panic-Transmit to sFTP into the JB & mount the target directory. This works - but I'd much rather be able to do it natively. I like your suggestion and will research NFS config for sharing on Linux - The link you posted is terrific once sharing has been enable on the remote host. –  Stormbytes May 1 '11 at 12:12
    
@Stormbytes Thanks for the clarification. I wasn't sure if I understood correctly what you wanted to achieve. After your comment I know I guessed correctly. All network traffic will stay inside the box (host <-> VM), so there shouldn't be security concerns about it being snooped. Glad to be of help :). BTW, could you accept the answer if you think it solves your problem? –  Paweł Brodacki May 2 '11 at 6:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.