New answers tagged

0 votes

Craft loses license after deploy

If it helps, you can move your Craft license key to environment variable, rather than the licence key file if it's being lost or causing issues with your deployment. https://craftcms.com/docs/3.x/...
user avatar
0 votes

Run Craft CMS 3 (or 4) without a .env file?

Craft doesn't need an .env file. Using an .env file with the phpdotenv library is just a recommendation included in the project template for convenience. Craft just uses $_SERVER and getenv to access ...
user avatar
  • 6,350
2 votes

Recommended caches to clear after server deployments?

I recommend clearing all caches on deploy via clear-caches/all. Caches should not be used to mask performance issues, they are used to solve concurrency & scaling, by holding onto data that doesn'...
user avatar
1 vote

Craft loses license after deploy

The issue is that the config files say solo thus when purchasing or activating the license, it switched to pro. Each time it deploys, it switches back to solo. Changing the config to pro seems to ...
user avatar
1 vote

Recommended caches to clear after server deployments?

This is a complicated question, because... it depends :) Clearing all the caches is often cited as a good practice, because it completely avoids any potential problems due to stale data, during or ...
user avatar

Top 50 recent answers are included