CSS/JS aggregation breaks layout after deployment in Drupal 8

Hello everyone,

I just created a really small website with Drupal 8 and because it is really such a small project I didn’t bother using composer and just used a docker container to set everything up.

However, I moved all my files to my webhost, imported the database, cleared all caches and sites/default/files/* and it works… only with aggregation turned off. As soon as I turn it on, all styles (including the admin theme styles) are not loaded.

I changed the permissions of sites/default/files/* to 777, but no real change. I checked the Drupal forums search and Google, but no luck so far.

Would be grateful for any hint on how to fix this.


Drupal version: 

Source: https://www.drupal.org/taxonomy/term/22/feed