Code deployment is managed with GitHub actions.
The current version of the theme is located at TBD. It deploys from the main
branch.
The new version of the theme is located at TBD. It deploys from the staging
branch.
- Docker
- DDEV
- Access to repo on GitHub
- Create a directory for your WordPress install
- Run
wp core download
in your WordPress root directory - Clone this repository into the
your-wp-root-directory/wp-content/themes/{{SITE-NAME}}
directory: git clone https://github.com/thecodezone/sage.git {{SITE-NAME}} - Copy the
.ddev-config
folder from your theme directory as.ddev
in your WordPress root directory.
cp -r {{SITE-NAME}}/.ddev-config ../../.ddev
- Run
ddev start
in your WordPress root directory - Run
composer install
from your theme directory - Run
yarn
from your theme directory to set up node modules. Make sure to use node 20 - Run
yarn build
from your theme directory for the first time to compile assets - Copy .env.example to .env and update the values as needed
- To sync database from production you can use the codezone/wp-scripts package.
- Run
git clone git@github.com:thecodezone/wp-scripts.git scripts
in your WordPress root directory - Run
scripts/setup
in your WordPress root directory to configure your WordPress CLI or manually add configurations towp-cli.yml
(copy fromscripts/wp-cli.yml.example
towp-cli.yml
in project root). Production and staging environment information is on MyKinsta, or ask a developer. See below for development environment info using ddev. - Run
scripts/sync production development
in your WordPress root directory to download the production database, media files and plugins
yarn dev
— Compile assets when file changes are madeyarn build
— Compile assets for production
@development:
ssh: docker:www-data@ddev-{{SITE-NAME}}-web/var/www/html
port: 22
host: ddev-{{SITE-NAME}}-web
path: /var/www/html
url: https://{{SITE-NAME}}.ddev.site
username: www-data
Sage is a WordPress starter theme with block editor support.
- Harness the power of Laravel and its available packages thanks to Acorn
- Clean, efficient theme templating utilizing Laravel Blade
- Modern frontend development workflow powered by Bud
- Out of the box support for Tailwind CSS
To update fork:
- git fetch upstream
- git checkout main
- git merge upstream/main
To start a new project off this theme:
- git clone https://github.com/thecodezone/sage.git my-custom-site
- cd my-custom-site
- rm -rf .git
- git init
- git add .
- git commit -m "Initial commit with customized Roots Sage theme"
- git remote add origin https://github.com/thecodezone/my-custom-site.git
- git push -u origin main