select unbuntu 22.04 linux
please open ports 80 and 3000 for the security group
git clone https://github.com/xiehust/chatbotFE.git
change .env.sample to .env and change the API_http and API_socket from to your CDK deployment result
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install yarn -g
cd ~/chatbotFE
yarn install
yarn build
Install PM2, which is a daemon process manager that will help you manage and keep your application online 24/7. Let's install it.
sudo yarn global add pm2
cd ~/chatbotFE
pm2 start yarn --name "chatbotFE" -- start
pm2 list
pm2 startup systemd
Create Application Load Balancer using the target group above, and choose the same security group as ec2
username:yourname
password:yourpassword
email:[email protected]
groupname:admin
status:active
createtime:2023-06-26T16:30:37.120Z