Last active
September 21, 2019 19:59
-
-
Save vardumper/6c018a44cfba9c5486fb9264e5490817 to your computer and use it in GitHub Desktop.
Working with vardumper/wordpress-and-woocommerce-development-boilerplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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