🦊 How to Deploy ElysiaJs (YouTube)
bun installCreates and applies database migrations:
bun prisma migrate dev --name initGenerates Prisma client only:
bun prisma generate --no-engineOpen Prisma Studio (GUI):
bun prisma studioRun unit tests
bun testTo run the example application:
bun run devBuild and Deploy to production:
bun run buildbun run start:prodDeploy to production (PM2):
pm2 start ecosystem.config.cjs --env production🎉 Initial commit
👷 build: — เปลี่ยนแปลงระบบ build หรือ dependencies เช่น npm เป็นต้น
✨ feat: — ใช้สำหรับการเพิ่มฟีเจอร์ใหม่ลงมาใน Codebase ของเรา
🐛 fix: — ใช้สำหรับการแก้ไข Bug ต่าง ๆ ใน Codebase
📚 docs: — ประเภทนี้ใช้สำหรับการที่เราเปลี่ยนแปลงแค่เฉพาะ Document
🎨 style: — เปลี่ยนแค่สไตล์ ไม่กระทบกับฟังก์ชัน
♻️ chore: — การเปลี่ยนแปลงอื่นๆ ที่ไม่ได้แก้ไขไฟล์ src หรือ test
🔨 refactor: — ปรับโครงสร้างโค้ด ทำความสะอาดโค้ด ให้ดีขึ้นโดยไม่เพิ่มฟีเจอร์ หรือแก้บั๊ก
🚀 perf: — คำนี้มาจาก Performance หรือ การปรับปรุงประสิทธิภาพการทำงานนั่นเอง
🚨 test: — การเปลี่ยนแปลงในส่วนของ Test ที่เราสร้างไว้ เช่น เพิ่ม Test-case
🏗️ ci: — ปรับปรุง เปลี่ยนแปลง CI Config ของไฟล์ หรือ สคริปต์ เช่น Jenkins, GitLab CI
⏪ revert: — ย้อนกลับ commitbun install autocannon -gnpx autocannon http://localhost:4001/v1/users -a 100 --header "Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.xxx"Build Command:
bun run buildStart Command:
bun run start:prod