0
I am trying to reproduce the file structure of my VPS on my mac locally, so that it's easier for me to test websites in a local development environment
to do this I would need have a /home folder at the root level of the hard drive
using panic transmit I can see that there is already a volume called home at the root level
can I store other files and folders in here to set up my local web server?
sorry if this is a dumb question folks
ya the vps host is running linux
everything is working well with my setup except for some file paths
on the server it's like /home/sitename/public_html/ and on my local machine it's /Applications/MAMP/htdocs/whatever/
Is there any way to get these paths the same without having to install some kind of virtual machine software?
I just would like to be able to ftp files directly to the host and not have to change configs
or, do you have an example of how to set up a machine specific config file? – mjr – 2010-04-20T13:58:47.903
You would need to give more details about what sort of app this is -- I'm guessing it's a PHP app. From there, you need to look at where you have hard-coded paths. If they're in PHP files, you can
include
a local-settings.php file which sets variables for these paths. You could also be better about using relative paths. In the long run, a bunch of full hard-coded paths will cause your more headaches than you need. – Doug Harris – 2010-04-20T15:23:22.397