You can run the Commerce application in any of the following modes:
Module name | Description |
---|---|
default | Enables you to deploy the Commerce application on a single server without changing any settings. However, default mode is not optimized for production. To deploy the Commerce application on more than one server or to optimize it for production, change to one of the other modes.
|
developer | Intended for development only, this mode:
|
production | Intended for deployment on a production system, this mode:
|
maintenance | Intended to prevent access to a site while it is being updated or reconfigured, this mode:
|
Adobe Commerce on cloud infrastructure supports only the production and maintenance modes.
As its name implies, default mode is how Commerce operates if no other mode is specified. Default mode enables you to deploy the Commerce application on a single server without changing any settings. However, default mode is not as optimized for production as is production mode.
To deploy the Commerce application on more than one server or to optimize it for production, change to one of the other modes.
In default mode:
Run the Commerce application in developer mode when you are extending or customizing it.
In developer mode:
pub/static
directory every time they are calledvar/report
is verboseRun Commerce in production mode when it is deployed to a production server. After optimizing the server environment, such as the database and web server, you should run the static view files deployment tool to write static view files to the pub/static
directory.
This improves performance by providing all necessary static files at deployment instead of forcing Commerce to dynamically locate and copy (materialize) static files on demand during run time.
In production mode:
Run the Commerce application in maintenance mode to take your site offline while you complete maintenance, upgrade, or configuration tasks. In maintenance mode, the site redirects visitors to a default Service Temporarily Unavailable
page.
You can create a custom maintenance page, manually enable and disable maintenance mode, and configure maintenance mode to allow visitors from authorized IP addresses to view the store normally. See enable and disable maintenance mode.
If you are using Commerce on cloud infrastructure, the Commerce application runs in maintenance mode during the deploy phase. When the deployment completes successfully, the Commerce application returns to running in production mode. See Deployment hooks in the Commerce Cloud guide.