Project

General

Profile

Download (1.15 KB) Statistics
| Branch: | Tag: | Revision:
1
This folder contains the drush command:
2

    
3
migrate-refresh
4

    
5
Refresh the drupal site by reloading all modules [ module_list(TRUE) ] and then all themes [ list_themes(TRUE); ] . This will
6
update the database with the server specific path to the themes and modules. Use this command after migrating to a different
7
server via sql dump, before opening any page.
8

    
9
Usage notes:
10

    
11
After restoring a dump from a remote server on a different machine the paths to the modules and themes in the drupal database are
12
pointing to locations invalid on the new server. Since this module is also affected by the messed up module paths the first step
13
always is to fix that path by re-enabling the cdm_dataportal module:
14

    
15
drush -r <path to the drupal root directory> -l <url of the dataportal site> pm-enable cdm_dataportal
16

    
17
e.g.:  drush -r /home/andreas/workspaces/www/Drupal5 -l http://127.0.0.1/cyprus/ pm-enable cdm_dataportal
18

    
19
Now drush can find the migrate command file and you can resfresh the installation:
20

    
21
drush -r <path to the drupal root directory> -l <url of the dataportal site> migrate-refresh
22

    
23
e.g.: drush -r /home/andreas/workspaces/www/Drupal5 -l http://127.0.0.1/cyprus/ migrate-refresh
(1-1/2)