borntoDev Tutorial
  • 🔙 กลับสู่หน้าหลัก
  • 👋Hello World !!
  • 🏆Vision and Values
  • 🗺️Road Map & Learning Path
  • Open Access Tutorial
    • 🧑‍🔬 Computer Science
      • Computer Architecture
      • Computer Graphic
      • Computer Network
      • Algorithms
      • Data Structures
      • Problem Solving Skills
      • Discrete Mathematics
      • Object Oriented Programming
    • 👨‍💻 Software Development
      • 💻C#
      • 🐍Python
      • 👨‍💻TypeScript
        • 🐥 Get started with TypeScript
          • 1 - Introduction
          • 2 - Setting up & Tools
          • 3 - Hello World!
          • 4 - TypeScript Syntax
          • 5 - Variable & Data Types
          • 6 - All in One Data Type
          • 7 - Operators
          • 8 - Decision
          • 9 - Loops
          • 10 - Functions
          • 11 - Object Oriented
          • 12 - Modules
      • 🎮Unreal Engine
      • 🎰Unity Engine
    • ☁️ System & Cloud
      • Amazon Web Services
      • Microsoft Azure
        • Get started with Azure App Service
          • 1-รู้จักกับ Cloud concept และ Microsoft Azure
          • 2-รู้จักกับ Azure App Service
          • 3-วิธีการ Deploy web app ไปยัง App Service
          • 4-การทำ Authentication และ authorization ใน App Service
          • 5-App Service networking features
          • 6-Workshop มาลองสร้าง static HTML web app โดยใช้ Azure Cloud Shell
          • 7-รู้จักกับ Configure application settings
          • 8-รู้จักกับ Configure general settings
          • 9-รู้จักกับ Configure path mapping
          • 10-Enable diagnostic logging
          • 11-Configure security certificates
          • 12-Manage app features
          • 13-การทำ Autoscale factors
          • 14-Identify autoscale factors
          • 15-Enable autoscale ใน App Service
          • 16-Auto scale best practices
          • 17-Staging environments
          • 18-การ Swap deployment slots
          • 19-Route traffic in App Service
    • 📊Data Science & AI
    • 🎨UX / UI Design
    • 🏢IT Business
  • The Formal Stuff
    • Requesting Time Off
    • Filing Expenses
  • About Us
    • 🧑‍🤝‍🧑Meet the Team!
    • 💟Support Us
Powered by GitBook
On this page
  • Automated deployment คืออะไร
  • Manual deployment มีตัวเลือกในการ push โค้ดขึ้นมายัง App service ดังนี้
  • สร้างสรรค์เนื้อหาที่แสนจะเข้าใจง่ายโดย

Was this helpful?

  1. Open Access Tutorial
  2. ☁️ System & Cloud
  3. Microsoft Azure
  4. Get started with Azure App Service

3-วิธีการ Deploy web app ไปยัง App Service

มาครับในบทความนี้ เราจะพามาดูวิธีการที่เราจะนำเจ้าตัวเว็บแอปพลิเคชันของเราขึ้นไปรันบน Azure App Service กันครับ แต่ก่อนอื่นขอบอกก่อนว่า App Service ตัวนี้สามารถ Deploy ได้ทั้ง 2 แบบ

  • Automated deployment

  • Manual deployment

Automated deployment คืออะไร

Automated deployment หรือ continuous integration (CI) ส่วนนี้จะเป็นการ build และ test โดยอัตโนมัติ ซึ่งเป็นกระบวนการในการเผยแพร่ซอฟต์แวร์หรือเว็บแอปพลิเคชันของเรานั้นเองบน Azure มีการรองรับการการทำ CI จากหลายแหล่ง ไม่ว่าจะเป็น

  • Azure DevOps เราสามารถ push โค้ดไปยัง Azure DevOps ได้ ซึ่งเจ้า Auzre DevOps ก็คือบริการหนึ่งบน Azure สำหรับการทำงานร่วมกันของท้ังทีม DevOps บน Azure และใน App Service ยังสามารถดึงโค้ดที่อยู่บน Azure DevOps มาใช้ได้อย่างง่ายดาย

  • GitHub แพลตฟอร์มการโฮสต์โค้ดไปเก็บไว้สำหรับการทำ version control และใช้งานร่วมกันในการพัฒนาโปรเจกต์ต่างๆ ซึ่ง App Service ก็รองรับการทำ CI/CD โดยการเชื่อมต่อจาก GitHub repository ของเราอีกด้วย

  • Bitbucket แพลตฟอร์มที่มีความคล้ายกับ GitHub ซึ่ง Azure ก็รองรับการทำ CI/CD กับเช่นกัน

Manual deployment มีตัวเลือกในการ push โค้ดขึ้นมายัง App service ดังนี้

  • Git: App Service มีฟีเจอร์ Git URL ที่สามารถเพิ่ม repository ใน git บนเครื่องของเราไปยัง App service ได้

  • CLI: webapp up เป็นคำสั่งสำหรับการ deploy เว็บแอปพลิเคชันไป App service โดยจะสามารถสร้าง คุณลักษณะของอินเทอร์เฟซบรรทัดคำสั่ง az ที่รวมแอปของคุณและปรับใช้ ไม่เหมือนกับวิธีการปรับใช้อื่นๆ az webapp up สามารถสร้างเว็บแอป App Service ใหม่ให้คุณได้ หากคุณยังไม่ได้สร้าง การปรับใช้ Zip: ใช้ curl หรือยูทิลิตี้ HTTP ที่คล้ายกันเพื่อส่ง ZIP ของไฟล์แอปพลิเคชันของคุณไปยัง App Service

  • FTP/S โดย FTP หรือ FTPS เป็นวิธีการดั้งเดิมในการพุชรหัสของคุณไปยังสภาพแวดล้อมการโฮสต์จำนวนมาก รวมถึงบริการแอพ

สร้างสรรค์เนื้อหาที่แสนจะเข้าใจง่ายโดย

🐲 Sirasit Boonklang (แอดเอฟ) - Tech & Coding Consultant @ borntoDev Co., Ltd.

Previous2-รู้จักกับ Azure App ServiceNext4-การทำ Authentication และ authorization ใน App Service

Last updated 3 years ago

Was this helpful?

| | |

Facebook
YouTube
Instagram
TikTok