I recently created a video tutorial (with written counterpart) on setting up a new WordPress site from scratch and deploying it to a production server.
I wanted to post it here to try and help out anyone trying to get started with Trellis.
Is there a compelling reason to set the dev vault.yml passwords to something other than the defaults? I usually just leave them since it’s only local. Love to hear your thoughts on why you recommend changing them.
The only reason would be if I plan to use WP Sync DB to push my local DB live. What I didn’t do in the video — that I should have done, given the loca-to-production push — was use ansible-vault to encrypt the development vault.yml.
If that’s not your workflow, however, then I don’t think there’s any need to change them from defaults.
@jlengstorf After using Sage for a long while now, I finally decided to make the jump and give Trellis and Bedrock a go. Your video was a great help in getting started, I seriously appreciate the time you took recording it and writing the post to go with it.
Glad to hear it! Trellis has been great for me, but I definitely struggled a bit when I first started; I figured this could be a way to give back to the Trellis community for saving me the huge amount of time it would have taken to figure out my own solution.
@jlengstorf Thank you so much for the tutorial it is by far the best out there. I hit a snag when doing the git push. I get a syntax error in the vault.yml file such as
Glad you enjoyed it! I’m not sure I understand the error, though — what command are you running when you get an error? Can you paste the full error message?
(Honestly, if you search the error message, I’m willing to bet the answer is already on this forum; the Trellis community is super helpful.)
@xu123 I can reproduce your issue if I mistakenly indent this line with vault_users (i.e., so its indentation level is the same as - name:). Please double check that your indentation matches the official repo. If this doesn’t resolve the issue, please start a new thread instead of responding here.
This thread is a great place to thank @jlengstorf or maybe to ask a question specific to his video.
Please put general support requests in a new thread. @jlengstorf’s decision to generously offer the video doesn’t sign him up for supporting Trellis and Roots generally.