How to Use Bedrock and Trellis at Kinsta

This is a post for all the WordPress developers visiting us!

Today we will explain how to use and integrate  Bedrock  and  Trellis  at Kinsta.

If you haven’t heard of these two tools before, we’ll use this opportunity to introduce them to you and also explain why it’s preferable to use them instead of using a traditional setup.

Bedrock and Trellis

Both Bedrock and Trellis exist to make it easier to develop, maintain, and deploy WordPress sites.

  • Bedrock  offers an alternative way to manage your WordPress installation with an improved folder structure, modern development tools, and better security.
  • Trellis  works with Bedrock to create development environments with Vagrant, along with deploying single commands.

The main reason to use Bedrock is to get proper dependency and package management for a WordPress project. You may already be familiar with  npm  for JavaScript or  Bundler  for Ruby. PHP is no different, and its equivalent is  Composer .

While using a package manager is germany email list common, it is less common for WordPress as WordPress already has its own concept for plugins. Bedrock integrates Composer to manage plugins, themes, and even the WordPress core as dependencies.

Trellis is a tool for easily creating development and production servers to host WordPress sites. It is also specifically built to work with Bedrock-based sites. The default use case for Trellis is to use it for development with Vagrant and also in production to achieve parity between if you decide on this method of fastening those two environments.

This post explains a slightly different use case: Trellis for your development server and Kinsta for your production (and/or staging) server.

Why use Kinsta instead of a VPS provided by Trellis? Because sometimes you might want to pay someone else to manage the server instead of doing it yourself (especially if you have a lot of clients). Kinsta also Trellis at Kinsta makes it easy to scale without having to deal with multiple servers, load balancers, and cloud uploads.

Many WordPress hosts aren’t very developer-friendly and don’t offer SSH access or Composer or  WP-CLI integration , both of which are requirements for using Trellis and Bedrock. Luckily, Kinsta offers SSH access on all of their plans  from Starter to Enterprise which makes cyprus business directory all of that possible. They can also modify the root path for proper functionality.

Bedrock vs Regular WordPress

You might be wondering why you would use Bedrock instead of a traditional WordPress installation. The reason is that Bedrock is specifically designed with the modern web developer in mind :

  • Environment-specific configuration files, stored outside the public web root
  • Environment variables to separate configuration from code in a single file.env
  • Improved security by limiting access to non-web files, along with  bcrypt hashed passwords
  • Custom wp-content directory Trellis at Kinsta named app
  • Composer for managing WordPress, plugins, themes, and other PHP dependencies
  • .gitignore which excludes the WordPress base, plugins and uploads

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top