-
Notifications
You must be signed in to change notification settings - Fork 0
Development
The development server is a simple docker container running a LAMP stack. The container is built using the docker-compose.yml file in the root of the project. The container is started using the following command:
docker-compose up --buildBefore that ensure that you run the initial steps specified in the Initial Setup section.
The following environment variables are used in the development server:
-
WORDPRESS_DB_HOST: The hostname of the MySQL server -
WORDPRESS_DB_USER: The username of the MySQL user -
WORDPRESS_DB_PASSWORD: The password of the MySQL user -
WORDPRESS_DB_NAME: The name of the MySQL database -
WORDPRESS_TABLE_PREFIX: The prefix for the MySQL tables -
WP_DEBUG: Set totrueto enable debugging -
SITE_URL: The URL of the siteThe default values for these environment variables are set in the
.env.examplefile in the root of the project. The.envfile is used by thedocker-compose.ymlfile to set the environment variables when the container is started.To use the default values, copy the
.env.examplefile to.envand update the values as needed.cp .env.example .env
The CSS for the site is compiled from the scss files in the wp-content/themes/academyAfrica/assets/css/src directory. You can compile the CSS using the following command from the wp-content/themes/academyAfrica directory:
pnpm css:watchThe compiled CSS is saved to the wp-content/themes/academyAfrica/assets/css/dist directory.
A project by CodeforAfrica