Changes between Version 3 and Version 4 of faq/domain/make-dev-site-live


Ignore:
Timestamp:
Jul 13, 2010, 11:40:20 AM (9 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/domain/make-dev-site-live

    v3 v4  
    1 = How do I copy my Drupal dev site to my Drupal live site? =
     1= How do I copy my dev site to my live site? =
    22
    3 Many of us maintain two different Drupal web sites, one is the live site (in the faq I will refer to that site as www.example.org) and one is a development site (dev.example.org). The development site is used to test out new code or a new design before it is ready to go live.
     3Many of us maintain two different web sites, one is the live site and one is a development site. The development site is used to test out new code or a new design before it is ready to go live.
    44
    55At a certain point, when your dev site is ready to go live, you need to copy your dev site to your live. Once you are done, your live site will be identical to your dev site. And, you can now continuing developing your dev site for the next iteration of your site.
    66
    7 Below are directions for creating a script that will make a backup copy of your live site and copy the dev site to the live site. These direcitons assume a familariaty with [wiki:secure_shell ssh].
    8  
    9 By creating a script, you can easily build a process that can be repeated in the future.
     7Attached to this wiki page is a script that will automate this process.
    108
    11 You can create the script on your local computer and [wiki:sftp sftp] the script to your server, or if you are comfortable with command line editors like nano or vim, you can create directly from a [wiki:secure_shell ssh] session.
     9You will need to modify the script to meet your particular needs, however, once you have it working once, you can repeatedly use it to synchronizing your dev site with your live site.
    1210
    13 In this example, let's call the script: sync-dev-to-live. It should be placed in the home directory of the user that controls the live site.
     11You can download the script on your local computer and then [wiki:sftp sftp] the script to your server.
    1412
    15 The script is attached to the bottom of this page. Be sure to edit the variables at the top.
     13The main parts to modify are the first two lines, which specify the path to your live site and the path to your dev site.
     14
     15In addition, you may optionally add information about your database if you want to copy your dev database into your live database (or leave them blank if you want to not mess with your databases).
     16
     17If you have any trouble with the script, please submit a [/newticket ticket].
     18
     19