My contenta installation finishes with white background because css stylesheets weren't loaded.
Errors in console:
Refused to apply style from 'http://cms.com/?0' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Refused to execute script from 'http://cms.com/' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Refused to apply style from 'http://cms.com/?0' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
My contenta installation finishes with white background because css stylesheets weren't loaded.
Errors in console:
Local machine reproduction steps.
Download install script
php -r "readfile('https://raw.githubusercontent.com/contentacms/contenta_jsonapi/8.x-2.x/installer.sh');" > contentacms-quick-installer.sh
Give permissions and run:
chmod a+x download-contentacms.sh
Install contenta
./download-contentacms.sh contenta
Enter directory:
cd contenta
Populate your
.env.local
file with the following environment variables:Run your docker containers (setup with your containers):
docker-compose up -d
Enter your development domain in hosts file:
sudo nano /etc/hosts
Enter php container and install contenta:
composer run-script install:with-mysql
In my case contenta install failed with keys error, check issue https://github.com/contentacms/contenta_jsonapi/issues/347.
Resolve error by running:
sudo chmod 660 -R keys
Refresh or delete database and reinstall with previously mentioned composer command.
Errors should be visible in console.