Changes between Version 9 and Version 10 of faq/setup-development-workstation


Ignore:
Timestamp:
Mar 21, 2008, 10:25:39 AM (12 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/setup-development-workstation

    v9 v10  
    1010== Installing and configuring critical helper packages ==
    1111
    12 Being able to send and receive email often part of the web application development process.
     12Being able to send and receive email is often part of the web application development process.
    1313
    1414{{{
     
    137137
    138138Now you are ready to begin. You can start placing files in your project's web directory and access your project at the URL: !http://mfpl.fidel/
     139
     140== Keeping files in sync ==
     141
     142If you are working on a database driven project (like Drupal) it can be difficult to keep your database and (in the case of Drupal) your files directory in sync.
     143
     144A bash script like the following one can help - by providing an easy way to synchronize your development platform with the live site:
     145
     146{{{
     147#!/bin/bash
     148echo "Synchronizing database."
     149ssh <user>@<server> "mysqldump -u <remote-db-user> -p<remote-db-pass> <remote-db-name>" | mysql -u <local-db-user> -p<local-db-pass> <local-db-name>
     150
     151echo "Synchronizing files."
     152rsync -av <user>@<server>:<remote-path-to-files-directory> <local-path-to-files-director>
     153}}}