New Shopify Certification now available: Liquid Storefronts for Theme Developers

App loading Issue after creating cache

mwaqas
Shopify Partner
6 0 4

I have created an app which is working fine without caching. As soon as I run command  config:cache app stops working. App is working fine on local environment even after cache command running. Issue is when running on production. Here is the screenshot:

Screenshot 2023-06-20 173538.png

 Any idea why this is happening?

 

After debugging found the issue in AppServiceProvider not getting .env values SHOPIFY_API_KEY etc

If I run php artisan config:clear command app works fine

Replies 0 (0)