####Great Roots team + community:
I’ve been kicking the tires on this stack for the last month or so and it’s hugely impressive. Sage has been fantastic to work with and Bedrock is much as it sounds.
Trellis has been more a journey into the darkness for me (thats on me really, as many of the tools are new to me).
Specifically though, I thought I’d see what the community says regarding deployments and setting up that group_vars/staging
file. My staging playbook always says it deploys and then I get nothing on my remote box when I SSH in there.
Current group_vars/staging
file, anonymized:
mysql_root_password: ...
project_pre_build_commands_local:
- path: "{{ project.local_path }}/web/app/themes/sage"
cmd: npm install
- path: "{{ project.local_path }}/web/app/themes/sage"
cmd: bower install
- path: "{{ project.local_path }}/web/app/themes/sage"
cmd: gulp --production
project_local_files:
- name: compiled theme assets
src: "{{ project.local_path }}/web/app/themes/sage/dist"
dest: web/app/themes/sage
wordpress_sites:
my-site:
site_hosts:
- example.com
local_path: ../bedrock # path targeting local Bedrock site directory (relative to Ansible root)
repo: git@github.com:name/repo.git
branch: master
# subtree: site # Use this if following the roots-example-project structure
multisite:
enabled: false
subdomains: false
ssl:
enabled: false
cache:
enabled: false
duration: 30s
system_cron: true
env:
wp_home: http://dev.example.com
wp_siteurl: http://dev.example.com/wp
wp_env: staging
db_name: my_db
db_user: my_user
db_password: my_password
auth_key: "..."
auth_salt: "..."
logged_in_key: "..."
logged_in_salt: "..."
nonce_key: "..."
nonce_salt: "..."
secure_auth_key: "..."
secure_auth_salt: "..."
The biggest thing I’m unclear about is the relationship between Sage’s repo and Bedrock’s repo. Does the build task cover everything from Sage effectively? Anything jump out as objectively wrong?
I’m running a pretty vanilla Bedrock site - the only mods I’ve made so far are including Composer packages really. I hunted around a bunch of documentation and cobbled this together, apologizes if some of this is just noob-ness.