extends | title | group | prev | next | order |
---|---|---|---|---|---|
docs |
Deployment |
Getting Started |
deployment |
directory-structure |
5 |
This theme follows WordPress recommended requirements. Your server must fulfill following requirements:
- At least PHP >= 7.0
- MySQL >=5.6 or MariaDB >=10.0
- The mod_rewrite Apache module
Download or clone theme repository to the wp-content/themes directory.
# @ /wp-content/themes
# Clone repository to the themes folder.
$ git clone [email protected]:<repository>/<theme-name>.git <theme-name>
Go into theme directory and run following commands to resolve dependencies and build a theme.
# @ /wp-content/themes
# Change directory to the cloned folder.
$ cd <theme-name>
# @ /wp-content/themes/<theme-name>
# Install required composer dependences (without these needed only to development).
$ composer install -o --no-dev
# @ /wp-content/themes/<theme-name>
# Install required npm dependences for building a theme.
$ npm install
All files inside public/
directory are ignored, it's recommended to not store compiled assets inside the repository. This requires us to build theme after each deploy.
# @ /wp-content/themes/<theme-name>
# Build theme assets for production.
$ npm run prod