I have a consistent problem with upgrading and updating Grav on my local server and then deploying it to my remote server. I get a broken site on the remote, even though the local is fine, every time.
Here are my steps:
- Commit (Git) all local changes
- Do
bin/gpm selfupgrade
- Do
bin/gpm update
- Do
bin/grav composer
- Do
bin/grav clear-cache
- Commit those changes
- Run phploy to upload the changes recorded by Git to the remote server via FTP
- Do
bin/grav clear-cache
on the remote server
That always give this this error when attempting to load the remote site:
Fatal error: Class 'CSSmin' not found in /home/bobrocke/public_html/materialize.bobrockefeller.com/system/src/G rav/Common/Assets.php on line 561
Fatal error: Uncaught exception 'RuntimeException' with message 'Could not find resource 'whoops.css' in any resource paths.(searched: /home/bobrocke/public_html/materialize.bobrockefeller.com/system/asset s, /home/bobrocke/public_html/materialize.bobrockefeller.com/vendor/filp/ whoops/src/Whoops/Handler/../Resources)' in /home/bobrocke/public_html/ materialize.bobrockefeller.com/vendor/filp/ whoops/src/Whoops/Handler/PrettyPageHandler.php:500 Stack trace: #0 /home/bobrocke/public_html/materialize.bobrockefeller.com/vendor/filp/ whoops/src/Whoops/Handler/PrettyPageHandler.php(126): Whoops\Handler\PrettyPageHandler->getResource('whoops.css') #1 /home/bobrocke/public_html/materialize.bobrockefeller.com/vendor/filp/ whoops/src/Whoops/Run.php(256): Whoops\Handler\PrettyPageHandler->handle(Object(Whoops\Exception\Error Exception)) #2 /home/bobrocke/public_html/materialize.bobrockefeller.com/vendor/filp/ whoops/src/Whoops/Run.php(327): Whoops\Run->handleException(Object(Whoops\Exception\ErrorException)) #3 /home/bobrocke/public_html/ma in /home/bobrocke/public_html/materialize.bobrockefeller.com/vendor/filp/ whoops/src/Whoops/Handler/PrettyPageHandler.php on line 500
The a bin/grav composer
on the remote server fixes things.
What am I doing wrong?