Sage Theme setup locally

July 14, 2021 . 1 MIN READ

Instructions to run local

install composer and yarn it is straight forward

open terminal (it is application on mac)

type cd /var/www/html/wp-content/themes/willo

where cd is a command to change directory

/var/www/html/wp-content/themes/willo your folder with wp stuff

then type composer update

then type yarn && yarn prod

it will give you url to open site

 

 

 

 

1) :one: you can take a look at the Dockerfile but the only thing that matters is:

cd /var/www/html/wp-content/themes/willo

composer update

yarn && yarn prod

 

2) if you’re comfortable with docker, you can also run the docker image locally and mount the theme directory

docker build -t willo:latest .

docker run -e WORDPRESS_DB_HOST=some-mysql -e WORDPRESS_DB_USER=root -e WORDPRESS_DB_PASSWORD=my-secret-pw -e WORDPRESS_DB_NAME=willo -e WORDPRESS_TABLE_PREFIX=willo -e WORDPRESS_DEBUG=1 -p 8080:80 -P willo:latest

Leave a Reply

Your email address will not be published. Required fields are marked *