In this tutorial, we will walk you through the process of deploying a Bun application to an Amazon EC2 instance and configuring Nginx as a reverse proxy to route incoming traffic to your application. This setup allows you to host your Bun application securely and efficiently.
Timestamp
00:09 Introduction
00:18 Create AWS EC2 instance
00:30 Create key pair
00:54 Security group allow HTTP traffic
00:59 Instance User data
01:39 Change key pair permissions chmod 400 keyu.pem
02:37 Install NVM and Nodejs
03:07 Install Bun
03:42 Clone Github repo
04:02 Install PM2
04:18 Start the application with PM2
04:48 Add Nginx reverse proxy
05:40 Test the application
Support on Buy Me Coffee: www.buymeacoffee.com/juniusl
Follow on Twitter: twitter.com/quicktuts_x
source code quicktuts.online/blog/deploying-bun-app-ec2-nginx
コメント