In the previous blog post, we learned how to Dockerize our Bun App. Now we are going to learn how to deploy a production-ready Bun App on Hetzner using Sliplane in less than 5 minutes! Your App will include push-to-deploy, a free domain, HTTPS, and logging 🚀🤯
No Time? Get started here and watch this 15-second gif for a quickstart:
Step By Step Guide
Managing and Securing a VPS is a time-intensive and potentially dangerous task, which is why we are going to use Sliplane to make the deployment to Hetzner easier.
What do you need?
All you need to get started is a Github Account, and a repository with a dockerized Bun App. Want to fork one? Check out this repository from our previous blog post.
Sign up
Go to Sliplane and sign up using your GitHub Account. Sliplane is using your GitHub Account to authenticate and access the code that you want to deploy.
After Signing up, you will be greeted by an onboarding screen. You can then select the repository that you want to deploy. You might need to allow Sliplane to access your repository first. If you do not see your repository, refresh the list with the button at the bottom of the list.
Selecting the repository
Make sure that the Repository that you select already contains a Dockerfile. After selecting, all settings should be prefilled. Usually, you do not need to change anything here and just click deploy!
Configuring your app
App Details
Deploying will take a few seconds, and then you will be redirected to a screen where you can see your new service.
If you click on the service you get details such as your domain, status, and server specs.
You can also see the logs of your Docker container. Since we are creating a completely new server just for you, this will take a few minutes (like 3). The next deploys will be a lot shorter, for bun apps 20 seconds is normal. Simply push something to your repository and see what happens!
Conclusion
This is how easy deploying your Bun App to Hetzner can be! If you have any questions or need help, feel free to leave any comments, write me a mail, or DM me on Twitter
Top comments (0)