Bedrock-ansible (soon to be renamed Trellis) is definitely the most awesome way to deploy your bedrock sites. A great place to start is the guide in the roots-example-project repo, where theres somewhat of a guide on how to set up a project with trellis, bedrock and sage.
Digital Ocean is nothing to be afraid of – just click create droplet, choose a data center location and select Ubuntu 14.04 x64 as your image. Add your SSH-key to your digital ocean account prior to creating your first droplet – then you can add the key to the new droplet as it is being created with one click.
Thanks man, this is great stuff. Pretty straight forward but it seems like there might be a couple snags along the way.
Just curious, if I were to record a screencast on it once I figure it out, what bits would I need to keep confidential? I’m assuming my SSH key, anything else I need to be careful of?
Moving from shared hosting to VPS is not straightforward at all, it is better learn step by step
I don’t think Bedrock-Ansible is a good idea for you at this time, as it a tool that abstracts the complexity of what is going on under the hood, better do it with your bare hands for a couple of months, learn and understand and then use the tool.
My advice:
Deploy a droplet in DigitalOcean, with ubuntu and select “wordpress” in preconfigured apps
Install Putty
Install Winscp. Winscp connects via SSH and gives you a “familiar” drag-and-drop interface.
also:
-lets you generate public-private keys with puTTYgen
-once you’re logged in you press CTRL-P to open server console and run commands
-if you want to change a remote text file just double click it
VPS comes without mysql manager, so you have to install and secure phpymyadmin or install mysql workbench
Create multiple websites, destroy them and do it again, that’s the best advice I can give you.
Alright so I’m ready to give this a try. Thanks for all the great info. Only problem is that Putty and Winscp are Windows only. I do have a couple questions if someone can answer them:
Why do I need Winscp? I thought the point of SSH’ing was that it was
done in the command line.
Now that Trellis has recently launched, does that change anything?
I’m trying to tighten up my workflow, so I’m also making the switch to Trellis from VVV, but I’ve never used it before. When I make the switch, I won’t have to use Bedrock will I? Because I wasn’t planning on implementing Bedrock just yet.
Do you have to use Bedrock? I suppose not, but it would be a lot more work to get a standard WP site installed with Trellis… You would have to edit a few files to point at different directories, skip the Composer install, etc.
Hi. I used a couple of weeks getting SSH workflow under my skin to. You could work locally and then, at the end of the day, push changes via SSH. Or, if you do not want to bash yourself, you could use Deployboy or something similar to deploy for you. Very practical.
And even if FTP feels kind of “last year” it’ll still do the job protocol wise. Then you can use it with git under VC and with PHPLoy or something.
I’ve used this workflow a couple of times too: https://github.com/james2doyle/git-website-workflow
Works very well, but I guess it’s better if you’re not too many people working on a project and you work on the project for a relatively long basis.
The logical progression would actually be Bedrock, then Trellis. Trellis automatically sets up Bedrock based projects for you in the VM and during deployment, so having an understanding of a Bedrock project would be beneficial.
Bedrock is still a WP installation, I suppose it depends on if you have used environment variables and .env files before, as well as Composer, would gauge how quick you could pick it up. But in the end, it’s still a WP installation, it just has a different directory structure, and you have the ability to use Composer with it. WordPress is installed to a sub-folder, but you can do that with a regular WP installation as well, it’s something I did before Bedrock was even a thing.
There are no screencasts yet, but maybe if you prod @swalkinshaw enough, he’ll get going on it