Deployment
You will need to make sure that your deployment process handles the following:
- Run
yarn && yarn build
from the project root - Copy contents of
public/dist/
folder to your server (produced fromyarn build
) - Run
composer install
- Run
wp acorn optimize
- Run
wp acorn icons:cache
(if using Blade Icons) - Run
wp login install --activate
(if wanting to use the WP-CLI login command)
# Deploying with Trellis
If you choose to use Trellis for handling your deployments, there are two options:
- Use GitHub Actions with setup-trellis-cli — uncomment the deploy job from
.github/workflows/deploy.yml
. It is configured to deploy to the production environment on every push to themain
branch - Run
trellis deploy <environment>
Last updated
Support Roots
Help us continue to build and maintain our open source projects. We’re a small team of independent developers and every little bit helps.
Sponsor Roots on GitHub