Skip to content

Instantly share code, notes, and snippets.

@adamzero1
Created February 12, 2021 11:19
Show Gist options
  • Save adamzero1/2d21cd832fdb7fbced53aa7feae95778 to your computer and use it in GitHub Desktop.
Save adamzero1/2d21cd832fdb7fbced53aa7feae95778 to your computer and use it in GitHub Desktop.
A description of the environment variables for Magento 2

MAGE_RUN_TYPE

  • Possible Values: store,website (string)
  • Version Constraints: 2.* CE, 2.* EE The scope the current request should be running as

MAGE_RUN_CODE

  • Possible Values: (string)
  • Version Constraints: 2.* CE, 2.* EE Website/Store (depending on MAGE_RUN_TYPE) code for the current request You can use admin for admin.

MAGE_MODE

  • Possible Values: developer,default,production (string)
  • Version Constraints: 2.* CE, 2.* EE The mode the installation should be running as. N.B: default is now deprecated

MAGE_PROFILER

  • Possible Values: true,false (boolean)
  • Version Constraints: 2.* CE, 2.* EE If to enable the Magento profiler

MAGE_DEBUG_SHOW_ARGS

  • Possible Values: true,false (boolean)
  • Version Constraints: 2.* EE If to include arguments in exception reports

MAGE_REQUIRE_MAINTENANCE

  • Possible Values:
    • true: require maintenance to be enable
    • false: require maintenance to be disabled
    • null: skip check
  • Version Constraints: 2.* EE

MAGE_REQUIRE_IS_INSTALLED

  • Possible Values:
    • true: require maintenance to be enable
    • false: require maintenance to be disabled
    • null: skip check
  • Version Constraints: 2.* EE

INIT_PARAM_FILESYSTEM_DRIVERS

  • Possible Values:
  • Version Constraints: 2.* EE

MAGE_DIRS

  • Possible Values:
  • Version Constraints: 2.* EE

MAGE_INDEXER_THREADS_COUNT

  • Possible Values: true,false (boolean)
  • Version Constraints: >2.2.6 EE The maximum number of threas allowed to be used whilst running the indexer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment