Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vardumper/6c018a44cfba9c5486fb9264e5490817 to your computer and use it in GitHub Desktop.
Save vardumper/6c018a44cfba9c5486fb9264e5490817 to your computer and use it in GitHub Desktop.
Working with vardumper/wordpress-and-woocommerce-development-boilerplate
# either fork the repo and clone your fork, or clone this repo directly
git clone git@github.com:vardumper/wordpress-and-woocommerce-development-boilerplate.git my-project-folder
# installs all dependencies, themes and plugins
cd my-project-folder
composer install
# copies the distribution default .env file
cp .env-distribution .env
# start docker and then spin up the container
docker-compose up -d
# compile frontend resources
gulp files && gulp css && gulp js
# you can now head to your browser to open your wordpress & woocommerce site
open /Applications/Safari.app http://localhost:8080
open /Applications/Safari.app http://localhost:8080/wp-admin
# deploys the master branch to your production environment
cap production deploy
# deploys the current or any other branch to staging
cap staging deploy
# executes your custom cli commands
docker-compose run php php bin/cron.php
# cheatsheet: more useful docker comands
# rebuild containers
docker-compose up -d --build
# remove docker orphans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment