Giter VIP home page Giter VIP logo

wp_bedrock_sage_docker_starter's Introduction

Deploy

Dependency

  • composer
  • wp-cli
  • Node
  • npm

how it deploy

cd ./bedrock
composer install
cd ./bedrock/web/app/themes/sage/
composer install
npm i
npm run build:production
cd ./bedrock/
wp media regenerate --yes --only-missing --allow-root

update ENV

cp ./bedrock/.evn.example ./bedrock/.env

For Developer

Run the Environment

docker-compose up -d

It's run site by url localhost:8080

theme development

go to wp/web/app/themes/sage

npm i
npm run start

DB

Put the *.sql to mysql/mysql_inject for inject new db and remove the folder mysql/database and run

docker-compose up -d

You should use the command for commit DB

bash ./pre-commit.hooks

if you need crop image run this

docker-compose up -d
docker exec op_wp_1 sh -c 'wp media regenerate --yes --only-missing --allow-root'

without docker on local

php C:\wp-cli.phar media regenerate --yes --only-missing --allow-root

if you need backup DB

docker-compose up -d db;
docker exec <PREFIX>_db_1 sh -c 'exec /usr/bin/mysqldump --no-tablespaces -u"$MYSQL_USER" -p"$MYSQL_PASSWORD" "$MYSQL_DATABASE" > /backup_sql/"$MYSQL_DATABASE".sql';
git add mysql/mysql_dump/bedrock_sage.sql; break;;

Remove all

docker system prune  

Slove Problems

WEBP Expres ukraine.com.ua Need this file

/bedrock/.htaccess

*** Loop refresh browser sync Okay super hard to find, but apparently the BrowserSync loop on localhost:3000 was caused by the WPML plugin’s option: Browser language redirect which was set to:

Redirect visitors based on browser language only if translations exist

I disabled it and now BrowserSync works as expected!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.