0

I'm having real trouble getting my head around the Features module. Would someone be able to help me understand it a little better? Perhaps describe it in laymans terms?

Here's the scenario I am working on right now:

I've made a change to some mini-panel and want to move those changes to a remote server with Features.

I create that feature and add the mini-panel and download the files. This part seems fine - I can even view my changes in the file's code. I then merge these files onto my remote server.

It's here I get a bit stuck. Now what do I do?

When I find my Feature in /admin/structure/features it's overridden. What do I do next to update my mini-panel on the remote server?

  • Your question is similar to this question and already has an answer.drush fr feature_name -y – mchar Mar 27 '17 at 6:22
2

You will have to revert the feature, So that the configurations in the remote server would be same as that in the code. Feature overridden means, the config in the Code and that in the server is not the same. So by reverting the feature you make the code and the db config the same. Please be cautious while reverting the feature, Sometimes the changes which you have done directly in the server would be lost. It'd be best if you test reverting the feature in your staging environment first.

  • Thanks - sometimes Revert comes up as an option, other times it doesnt. Would you know why this would happen? – MeltingDog Mar 28 '17 at 7:14
  • Revert Option comes only if there is difference between the config in code and that in the database are different. If both are same then nothing is there to be reverted! – Safallia Milins Mar 30 '17 at 5:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.