Collapse

Announcement

Collapse
No announcement yet.

How to Deploye Drupal Site on Production?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Deploye Drupal Site on Production?

    When working on a Drupal site it is good practice to use one or more separate environments to develop and test your site without impacting the live site's availability to the world. Changes made to the code or configuration of your development site are then deployed via an automated (or manual) process in order to make them available on the live site. This allows you to, for example, create a new content type or change the configuration of your front page view in isolation so that you can preview the changes. You can then deploy those changes without having to resort to manually replicating the changes on the live site.

    Drupal developers use a variety of different tools and Drupal APIs to facilitate the synchronization of code and configuration between environments. The complete process is known as a deployment workflow. At a very high level this includes the following steps:
    1. Make a change to configuration, or code, on a development environment
    2. Export any configuration changes to a file(s) that can be stored in version control
    3. Commit code and configuration changes to version control
    4. Synchronize version-controlled files to the live server
    5. Run database updates (update.php) and import any configuration changes
    6. Clear the cache

    To improve the process further, figure out how to automate as much of that as possible using tools like Drush, Git, and continuous integration software. The goal is to create a repeatable, reliable process that reduces the time it takes, decreases downtime for your site, and minimize human error.
Working...
X