change ZM_ENVIRONMENT in storefront
ZenMagick does support the concept of environments. For example, there are different config files for ‘dev’ and ‘prod’.
One of the ways to switch to a different environment is to change index.php to index_[environment].php.
So far this was limited to admin, but no more! The only issue is that yo will need to change the storefront url (for testing, mind) to something similar to the ZenMagick admin url:
zenmagick/apps/storefront/web/index_dev.php?main_page=index
This can be helpful toggling logging settings, or even the db used.
The other reason is that there is (and will be more) code that is conditional to the environment. One example that I added today is that in dev mode a new event is fired for each fetched template. This allows to see (roughly) how much time each template takes to render…
