Hi everybody,
I am looking for a solution to easily and quickly install modules AND their configuration from local and remote servers. Basically, I have 2 situations:
1) I have a local dev server on which I install and configure modules. For the moment, when I have a working module with a working configuration, I have to install it on the remote server and then reproduce the configuration I had locally. How could I export the local configuration and import it on the remote server?
2) I regularly "copy" the remote server locally to a DEV server. After copying everything from remote to local, I still have to make specific modifications to the DEV server configurations (for example, change the title of the site so that I can quickly see it is the DEv server, change paths to data stored on S3 so that I do not put mess when testing new features, etc). How could I automate this?
For the moment, I am thinking of putting everything in a PHP script that I could launch when I have to update the configuration of local and/or remote sites. Do you know of a better solution?
Best regards.
Comments
maybe the features
maybe the features module?
http://drupal.org/project/features
Hi, thanks a lot for your
Hi,
thanks a lot for your answer. I had a look at the Features module. It seems to be very powerful but maybe overkilling for what I need. All my sites are strictly the same so basically, I copy-paste my Drupal installation code onto the servers and import the DB. I only have to tweak some parameters for the site and my home-made modules. If I have to use Features, I will have a lot of things to do while I only want to change few variables in the install (less than 20 parameters I believe).
And for the case when I install and configure a new module, I only want to export the new configuration...
Maybe I should write a simple module with an update hook that correctly sets the variables... Is it possible (read, a good idea) to do this?
Any idea?
Best regards.
I just learnt that you could
I just learnt that you could use the settings.php file to set your variables. You will not be able to change them using the Drupal admin pages but it is not a problem.
Regards.
Hi, until now, putting the
Hi,
until now, putting the changing variables into the settings.php file was enough for me. Now, I clearly see the limitations of this method. So, I am looking at the Features module and it seems really powerful. However, you can construct Features only for modules Features-Aware. In my case however, most of my modules are not in that case so Features alone is not enough. But using the Strongarm module in coordination with Features allow you to also export any module configuration. The Features-Strongarm combo seems extremely powerful.
Regards.