Answers.Body: <p>When you install D8/CiviCRM with Composer you end up with CiviCRM's <code>.gitignore</code> file in the <code>vendor/civicrm/civicrm-core</code> directory. Renaming that <code>.gitignore</code> outoftheway solves the problem. No <code>civicrm.settings.php</code> file edits required! Of course you can be more selective but think of not ignoring <code>bower_components</code> as well as the <code>/ext</code> -&gt; that's what solved this issue instantly.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-07T01:54:18.133Z
Answers.LastActivityDate: 2020-07-07T12:46:28.703Z
Answers.LastEditDate: 2020-07-07T12:46:28.703Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>My composer build D8/CiviCRM instance looks great on my local server where I built it - but then when I add it all to git and push it to a production server -&gt; it looks like this: menus are messed up and CiviCRM is not able to find its own extension directory that it ships with.</p>
  <p><a href="https://i.sstatic.net/OaLNv.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/OaLNv.png" alt="enter image description here" /></a></p>
  
Tags: <drupal-8>
Title: Why am I getting mangled menus and why can't CiviCRM find its own /ext directory?
ThreadText: # Why am I getting mangled menus and why can't CiviCRM find its own /ext directory?
  
  (Asked by: username_0 on 2020-07-07)
  
  My composer build D8/CiviCRM instance looks great on my local server where I built it - but then when I add it all to git and push it to a production server -> it looks like this: menus are messed up and CiviCRM is not able to find its own extension directory that it ships with.
  
  [![enter image description here](https://i.sstatic.net/OaLNv.png)](https://i.sstatic.net/OaLNv.png)
  
  **Tags:** drupal-8
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2020-07-07. Score: 2
  
  When you install D8/CiviCRM with Composer you end up with CiviCRM's `.gitignore` file in the `vendor/civicrm/civicrm-core` directory. Renaming that `.gitignore` outoftheway solves the problem. No `civicrm.settings.php` file edits required! Of course you can be more selective but think of not ignoring `bower_components` as well as the `/ext` -> that's what solved this issue instantly.
  
  
  ---
  
  