Skip to content

mino89/wdwtb

Repository files navigation

wdwtb

Wordpress Docker Webpack Timber Bootstrap

Before starting

Make sure you have insalled these dependencies

Set Up environment variables

Export these three variables

export DB_ROOT_PWD="yourpassword"
export DB_PWD="yourpassword"
export DB_USER="youruser"

Install dependencies

cd theme
npm install
composer install

Develop

Start docker

docker-compose up

Start webpack watcher

npm run watch

Build

npm run production

Deploy

Before deploy your website remember these steps, i've tested it on Ubuntu 18.04 You have a docker-compose-prod.yml, run this command

docker-compose -f docker-compose.yml -f docker-compose-prod.yml up -d

Problem with uploads

There is a problem with file uploads, i've find this workaround for the moment

sudo find wp-content/ -type d -exec chmod 777 {} +

About

Wordpress Docker Webpack Timber Bootstrap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published