You can maintain this configuration or, as we suggest, change it to use standard ports: 80 for Apache, and 3306 for MySQL. MAMP uses custom ports for Apache and MySQL server instances: Apache runs on port 8888, MySQL runs on port 8889. Don't start MAMP yet: we must first make a change to the configuration. Now the symbolic link /Applications/MAMP/db points to the Dropbox shared folder ~/Dropbox/Development/db that contains the MAMP Databases. Lastly on both Desktop and Notebook create a symbolic link from MAMP to Dropbox with the following command: ln -s ~/Dropbox/Development/db /Applications/MAMP/db On Notebook open a Terminal and delete the database folder using the following command: cd /Applications/MAMP On Desktop move database folder from MAMP standard location to db directory on Dropbox, to do this open a Terminal and use the following commands: cd /Applications/MAMP/db Don't start MAMP yet: before doing this you have to move the database and modify the default configuration. Its installation is very easy: download MAMP from here, unzip the archive and double-click it, then follow the instructions. MAMP is an acronym that stands for: Mac, Apache, MySQL and PHP, it is an application that installs a local server environment on your Mac. In the Dropbox folder on Desktop, create the following directory structure:Ĭheck that the same directory structure is propagated on Notebook. Step 1 Create Directory Structure on Dropboxĭownload and install Dropbox on your Desktop and your Notebook (see here for instructions). An account with SSH access and public key authentication. ![]() PHP and MySQL as per WordPress requirements.Git (how to install Git locally is covered in the Pro Git book).A Dropbox account, an installed Dropbox client both on your desktop and notebook (see Dropbox website for installation instructions).acknowledge "urgent-on-the-fly" changes on the production server and pull them in the local environment.make the initial commit and the first deploy to remote server.modify the WordPress configuration to manage local/remote DB connection.configure Git, setup the local repository.setup MySQL for the WordPress production site.configure Git, setup the remote repository and the necessary hook. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |