2 edited title
| link

Drupal 8: Should I check in sites/default/files?

source | link

Drupal 8: Should I check in sites/default/files

I installed a fresh D8 and was going for the usual setup of sending code and config to repo, and db sync (from a backup dump or sync from remote). Now when I reproduce the site given the code, config, and dump, I notice that the site has no styles.

Comparing the restored setup and another fresh install, I notice that sites/default/files is missing in the restored setup. This directory is ignored by default because it's supposed to house user generated files. However, a fresh install of D8 appears to put files related to theming in that directory.

So my questions are:

  • Why is this directory ignored by .gitignore if theme files reside there?

  • What is the proper way to do this? Should I check-in these files?

  • What else should I or should not I be checking-in?

And we don't have a common remote environment as of the moment so an "rsync from remote" doesn't apply, nor does checking-in archives as we just want code in the repo.