Deploy to WPEngine
In this article, I’ll walk you through how to easily deploy your site hosted with WPEngine.
Deploying with Launchdeck
Launchdeck is an automated code deployment tool that allows you to easily deploy code to your servers. You can write configuration files, define custom commands and deploy automatically whenever you push.
Our basic plan is free - including all our features and allows you to deploy 1 project unlimited times a day!
Before you get started
When you first start using Launchdeck to deploy code to your server hosted with WPEngine, it’s important that you’re already using Git, and you'll need to create an SFTP user in WPEngine. You can follow WPEngine's own guide to do so.
For security, we recommend creating a separate user to use for deployments and that has access only to the directory your deploying to.
Create a project
Let’s get started by creating a new project and linking your Git account. You can easily connect a Github or Bitbucket account and choose from the list of repositories available within the account. Or if you're using a different Git provider, like Gitlab or a self-hosted server, you can choose the Private/Hosted Git server option.
Setting up WPEngine server
Now let’s tell Launchdeck where to upload the files.
Pick ‘SFTP’ as the server type and give it an easily recognizable name.
After this, enter your SFTP hostname, followed by your WPEngine username and password. It's worth noting that WPEngine's SFTP connections operate on port 2222.
Enter the upload path to which your files should be uploaded. For example, if you only want to upload a WordPress theme from your Git repository, fill in the path to the theme here. Check our Wordpress deployment guide at the bottom of this article for more information.
To figure out whether the server connection data is correct, run the server connection test and we’ll try to connect to your server and check the provided path(s).
Deploy for the first time
You’re now ready to start your first deployment. Click ‘create new project’ to confirm the settings and add the project. In the project overview, you can now start the build. The code will be cloned from your repository and prepared for you to publish it. Hit ‘Publish’ and your code is live!
If you then commit changes to your repository, the commit will automatically appear in your project overview where you’ll be able to upload and publish your new version with the push of a button. If anything goes wrong, you can simply roll back to the latest working version.
That’s all! By using Launchdeck to deploy to your WPEngine server, you’ll never have to upload a new version manually. Just hit “publish”, and Launchdeck will deploy your site or app within seconds.
Launchdeck has a variety of useful features to help you deploy your site:
- Automating tasks such as installing dependencies, transpiling code and running tests using build commands
- Running SSH commands on your server
- Keep sensitive information such as database credentials files safely excluded from your repository using configuration files.
- Deploy WordPress theme, this guide will walk you through deploying a WordPress theme directly to your server.