Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Latest commit

 

History

History
50 lines (38 loc) · 1.31 KB

deployment.md

File metadata and controls

50 lines (38 loc) · 1.31 KB
extends title group prev next order
docs
Deployment
Getting Started
deployment
directory-structure
5

Server requirements

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

Installing a Theme

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