Roots Discourse

Scenario - Local Trellis / Remote Bedrock


#1

I have a setup with a reseller account on a shared server, but they have given me Composer, WP-CLi and SSH access to. they are saying deploying Bedrock to it is ok.

So my question is should I install the whole Trellis/Bedrock package locally then install Capistrano to the bedrock folder to as per https://css-tricks.com/intro-bedrock-wordpress/ so that I can just deploy the bedrock setup to the remote server?

This is preferable obviously because of the vagrant setup in that its not touching any of my Mac components and it is contained so to speak,

OR

should I be using a simple bedrock install locally and use the inbuilt php/mysql packages on the Mac?


#2

Depends how comfortable you are with Vagrant + Trellis. For some people, Trellis is a really easy dev only setup and it can definitely only do that if you want.

Give it a try I guess?


#3

Have got trellis and vagrant fully working on dev machines, but use a good host for smaller sites who have composer/git/and wp-cli installed so it looks like Bedrock is ok but not trellis…


#4

Trellis is just a tool for quickly and easily setting up servers, be they remote or local. You can definitely use Trellis to ease the trouble of creating local development environments and then deploy to your host using some other method. I’ve done this and it works fine.

The trade-off is that you miss out on Trellis’ whole guaranteed-same-environment-everywhere feature, but that’s no different from any other local dev/shared hosting setup.

It’s your call, but Trellis can help you here the same way MAMP or VVV would, and I think it’s better.