Deploy to Kinsta
In this article, I’ll walk you through how to easily deploy your site hosted with Kinsta.
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 Kinsta, it’s important that you’re already using Git, and have set up SFTP on Kinsta. You can follow Kinsta's guide to do so.
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 Kinsta server
Now let’s tell Launchdeck where to upload the files.
Pick ‘SFTP’ as the server type and give it an easily recognizable name.
Next, input the SFTP connection particulars for your Kinsta server. Utilize your IPv4 address as the hostname, and provide your username and password, along with port 22.
Enter the upload path to which your files should be uploaded. This typically commences with
www/your-site-name when deploying on Kinsta, and subsequent subdirectories can be specified if deploying solely to a directory within, like your WordPress theme directory.
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 Kinsta 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.