This repository is an example of how to integrate and use the following projects together:
For more background, see this blog post.
Make sure you have installed all of the dependencies for Trellis, Bedrock and Sage before moving on.
At a minimum you need to have:
# @ frieda-garcia-park.com/trellis (you must cd to this path)
$ vagrant up
# @ frieda-garcia-park.com/trellis
$ ansible-playbook server.yml -e env=<environment>
# @ frieda-garcia-park.com/trellis
./deploy.sh <environment> frieda-garcia-park.com
# OR
ansible-playbook deploy.yml -e "site=frieda-garcia-park.com env=<environment>"
To rollback a deploy:
ansible-playbook rollback.yml -e "site=frieda-garcia-park.com env=<environment>"
In development, run gulp in watch mode for live updates at localhost:3000. Important: always use the frieda-garcia-park.dev URL to access the WordPress admin.
# @ frieda-garcia-park.com/site/web/app/themes/sage
$ gulp watch
Production assets (minified CSS, JavaScript, images, fonts, etc.) need to be compiled. Run gulp with the --production
flag. The resulting files will be saved in themes/sage/dist/
. Never edit files in the dist
directory.
# @ frieda-garcia-park.com/site/web/app/themes/sage
$ gulp --production