Single-machine deployment
- Topics:
- Configuration
- Deploy
CREATED FOR:
- Experienced
- Admin
- Developer
This topic provides instructions for deploying updates to Commerce on a production server using the command line. This process applies to technical users responsible for stores running on a single machine with some themes and locales installed.
Assumptions
- You installed Commerce using Composer.
- You are directly applying updates to the server.
git clone
to install Commerce.Contributing developers should use [this guide][install] to update their Commerce installation.
Deployment steps
-
Log in to your production server as, or switch to, the file system owner.
-
Change directory to the Commerce base directory:
cd <Commerce base directory>
-
Enable maintenance mode using the command:
bin/magento maintenance:enable
-
Apply updates to Commerce or its components using the following command pattern:
composer require-commerce <package> <version> --no-update
package: The name of the package you want to update.
For example:
magento/product-community-edition
magento/product-enterprise-edition
version: The target version of the package you want to update.
-
Update components with Composer:
composer update
-
Update the database schema and data:
bin/magento setup:upgrade
-
Compile the code:
bin/magento setup:di:compile
-
Deploy static content:
bin/magento setup:static-content:deploy
-
Clean the cache:
bin/magento cache:clean
-
Exit maintenance mode:
bin/magento maintenance:disable
Commerce
- Overview
- General setup
- Deployment
- Cache
- Command Line
- Command-line tool
- Common commands
- Enable logging
- Manage the cache
- Manage indexers
- Configure cron jobs
- Compile code
- Operation mode
- Start message queue consumers
- URN highlighter
- Dependency reports
- Localization
- Configuration management
- Static view
- Create symlinks
- Run unit tests
- Convert layout files
- Generate data for performance testing
- Run support utilities (Commerce only)
- Configuration files
- Configuration paths
- Cron Jobs
- Logs
- Message Queues
- Multiple sites
- Search Engine
- Security
- Storage
- Return to Operational Guides