Setting up the cloud feature is a simple process. This is a great way to protect you from accidentally deleting files on your projects, and allows you to work on sites on different computers. You can store one, or all of your hosts in the cloud. This isn’t something that has to be done, but I find it cleaner to start without anything in the MAMP directory such that when I create the symbolic link, that’s what it creates. MAMP Pro allows you to store your files in the cloud via Dropbox or OneDrive. Next, I usually remove the db directory from its original location. Note that the syntax for symbolic links takes the destination directory first then the source directory second. First, make sure MAMP is completely closed. This is where things can break if you’re not careful. Copy the Database to Dropboxįrom there, I copy the db directory from its original location on the hard drive to the location I’ve selected in Dropbox.Īfter that, I need to create a link. So, for example, in Dropbox, I have /Apps/MAMP/db since I have a db directory on the hard drive. I prefer the name the directory based on the directory that it’s going to represent as I create a link between the two files. Note, however, that the name of the directory is important – at least to a degree. Sometimes this is for editors, other times it’s for software like Transmit (as you see in the shot above), and I’m using it for sharing databases, too. This is up to you, but I’m a fan of using an “Apps” directory out of which I create shared settings. To find your local ip go to System Preferences > Network. If you run Apache on the default port 80, then you do not need to enter a port number. Note: You need to include the port Apache is running on. This can be done from a mobile device or other Mac. To do this, copy (versus move) the db directory to another place on your hard drive so that you can easily restore it if something goes wrong. Type in the local ip of Mac with your MAMP PRO installed and running to access your localhost. This should go without saying, but anything that’s located in the /Library/Application Support/appsolute/MAMP PRO/db directory should be saved in case you make an error when setting up the shared resources. Since I’m on macOS, the following set of instructions are going to be specifically for that, but they can be tailored for other machines. be comfortable with symbolic links (or shortcuts, if you’re on Windows). have MAMP Pro (or your software of choice) installed on each machine,.have Dropbox installed on each machine,.More specifically, it’s in the db subdirectory, but I’ll get to that momentarily.Īnd the idea behind sharing databases between (or among) machines is this: MAMP Pro also allows you to create your own SSL certificates during site creation, though you’ll need to add the certificate to your macOS keychain to avoid showing SSL errors in browsers. You just need to know where your software of choice keeps its database files.įor MAMP Pro and on macOS, this is in the /Library/Application Support/appsolute/MAMP PRO directory. Secondly, although the example that I’m going to give is specifically for MAMP Pro, this is applicable not only to MAMP but other systems as well.
0 Comments
Leave a Reply. |