Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,025

HOME > Windows Azure > Windows Azure Web Site > ตอนที่ 3 : Windows Azure Deploy Application ขึ้นบน Web Site ด้วย Git



Clound SSD Virtual Server

ตอนที่ 3 : Windows Azure Deploy Application ขึ้นบน Web Site ด้วย Git

ตอนที่ 3 : Windows Azure การ Deploy Application ขึ้นบน Web Site ด้วย Git สำหรับ Git เป็น Open Source ที่ได้รับความนิยมใช้ในการที่จะ Upload หรือส่ง Application ของเราไปยังบน Server ต่าง ๆ และบน Windows Azure ก็มีการอนุญาติ ให้ใช้ Git สำหรับการ Deploy หรือ Publish ข้อมูลต่าง ๆ ขึ้นบน Web Site เช่นเดียวกัน การใช้ Git นั้นจะช่วยให้การ Upload นั้นสะดวกมาก เช่น สามารถ Upload ข้อมูลทั้งหมดได้ภายในครั้งเดียว และนอกจากนี้ Git ยังได้รับการสนับสนุนการใช้งานจาก GitHub, CodePlex, หรือ BitBucket.

การทำงานของ Git ที่จะ Upload ไฟล์ขึ้นบน Windows Azure จะอยู่ในรูปแบบของ Command Line สามารถรองรับได้ทั้ง Windows , Linux และ Max OS

ขั้นตอนที่ 1 ดาวน์โหลดและติดตั้ง Git

Windows Azure การ Deploy Application Git

Download ได้ที่นี่


Windows Azure การ Deploy Application Git

Icons ของโปรแกรมบน Desktop หลังจากที่ได้ติดตั้งเรียบร้อยแล้ว

Windows Azure การ Deploy Application Git

ตัวอย่างหน้าจอของโปรแกรม Git ซึ่งจะใช้ผ่าน Command Line








ขั้นตอนที่ 2 สร้าง Username และ Password บน Web Site สำหรับ Git

Windows Azure การ Deploy Application With Git

ในหน้าจอของ Web Site บน Windows Azure ให้เลือก Web Site ที่ต้องการ

Windows Azure การ Deploy Application With Git

จะเข้าสู่หน้า Dashboard หลักของ Web Site

Windows Azure การ Deploy Application With Git

ให้คลิกที่ Set up Git publishing

Windows Azure การ Deploy Application With Git

กำหนด Username และ Password สำหรับ Git

Windows Azure การ Deploy Application Git

ให้คลิกที่ DEPLOYMENTS

Windows Azure การ Deploy Application Git

หน้าจอนี้เป็นคำอธิบายและคำแนะนำในการที่จะใช้การ Publish ผ่าน Git ประกอบด้วย URL และ Command ต่าง ๆ ที่เราจะใช้บน Git

Windows Azure การ Deploy Application Git

คลิกที่ Push my local files to Windows Azure เพื่อดูรายละเอียด ซึ่งหลัก ๆ แล้วจะประกอบด้วย Command

git init
git add .
git commit -m "initial commit"


git remote add azure https://[email protected]/thaicreate.git
git push azure master


ให้เรา Copy คำสั่ง 2 ชุดนี้ไว้ เพื่อจะใช้บน Git

Windows Azure การ Deploy Application Git

กลับมาที่โฟเดอร์ Application ของเรา ซึ่งตอนนี้มีอยู่ 2 ไฟล์ คือ index.html และ home.html ให้คลิกวาพื้นที่ว่าง ๆ ของโฟเดอร์เลือก Git Init Here

Windows Azure การ Deploy Application Git

คลิกขวาอีกครั้งให้เลือก Git Bash

Windows Azure การ Deploy Application Git

จะขึ้นหน้าจอ Command Line ดังรูป ซึ่งตอนนี้ทำงานอยู่บน Path ของ Application ที่เราต้องการ

Windows Azure การ Deploy Application Git

git init
git add .
git commit -m "initial commit"

ใช้คำสั่งนี้

Windows Azure การ Deploy Application Git

แสดงการ Upload จาก Git เข้าสู่ Windows Azure

Windows Azure การ Deploy Application Git

git remote add azure https://[email protected]/thaicreate.git
git push azure master

ตามด้วยคำสั่งนี้ และขั้นตอนนี้โปรแกรมจะถามหา Password ให้เราใส่ Password ที่ได้จากขั้นตอนการสร้าง Username และ Password

Windows Azure การ Deploy Application Git

หลังจากนั้นเสร็จสิ้นขั้นตอนการ Publish หรือ Upload ด้วย Git

Windows Azure การ Deploy Application Git

ทดสอบการเรียก Web Site ของเรา ไฟล์แรก index.html

Windows Azure การ Deploy Application Git

ไฟล์ที่สองชื่อ home.html

Windows Azure การ Deploy Application Git

เมื่อใช้การ FTP เข้าไปดูก็จะพบกับรายชื่อไฟล์ที่ผ่านการ Git เข้ามาบน Windows Azure








สำหรับการใช้ Git หรือ FTP นั้น สามารถใช้ได้ทั้ง 2 วิธี ขึ้นอยู่กับว่าใครจะชอบแบบไหน หรือสถดวกวิธีไหน และนอกจากนี้ยังสามารถที่จะ Deploy Application ของเราด้วยวิธีอื่น ๆ เช่น การใช้ Web Matrix , TFS ผ่าน Visual Studio เป็นต้น และสามารถหาอ่านได้จากบทความอื่น ๆ ที่เกี่ยวข้อง


อ่านเพิ่มเติม


   
Share


ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท


ลองใช้ค้นหาข้อมูล


   


Bookmark.   
       
  By : ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ)
  Score Rating :  
  Create/Update Date : 2013-02-17 11:20:52 / 2017-03-24 09:51:06
  Download : No files
 Sponsored Links / Related

 
ตอนที่ 1 : รู้จักกับ Web Site และ การสร้าง Web Site บน Windows Azure
Rating :

 
ตอนที่ 2 : Windows Azure การ Upload Publish ขึ้นบน Web Site ด้วย FTP
Rating :

 
ตอนที่ 4 : การสร้าง Web Site จาก Gallery ง่ายสุด ๆ ได้ภายใน 5 นาที
Rating :

 
ตอนที่ 5 : การจัดการกับ Web Site บน Windows Azure ด้วย Web Matrix
Rating :

 
ตอนที่ 6 : Custom Domain ชื่อโดเมนของเราเองบน Web Site ของ Azure
Rating :

 
ตอนที่ 7 : ส่วนอื่น ๆ ของ Web Site บน Azure เช่น Scale และ Monitor
Rating :


ThaiCreate.Com Forum


Comunity Forum Free Web Script
Jobs Freelance Free Uploads
Free Web Hosting Free Tools

สอน PHP ผ่าน Youtube ฟรี
สอน Android การเขียนโปรแกรม Android
สอน Windows Phone การเขียนโปรแกรม Windows Phone 7 และ 8
สอน iOS การเขียนโปรแกรม iPhone, iPad
สอน Java การเขียนโปรแกรม ภาษา Java
สอน Java GUI การเขียนโปรแกรม ภาษา Java GUI
สอน JSP การเขียนโปรแกรม ภาษา Java
สอน jQuery การเขียนโปรแกรม ภาษา jQuery
สอน .Net การเขียนโปรแกรม ภาษา .Net
Free Tutorial
สอน Google Maps Api
สอน Windows Service
สอน Entity Framework
สอน Android
สอน Java เขียน Java
Java GUI Swing
สอน JSP (Web App)
iOS (iPhone,iPad)
Windows Phone
Windows Azure
Windows Store
Laravel Framework
Yii PHP Framework
สอน jQuery
สอน jQuery กับ Ajax
สอน PHP OOP (Vdo)
Ajax Tutorials
SQL Tutorials
สอน SQL (Part 2)
JavaScript Tutorial
Javascript Tips
VBScript Tutorial
VBScript Validation
Microsoft Access
MySQL Tutorials
-- Stored Procedure
MariaDB Database
SQL Server Tutorial
SQL Server 2005
SQL Server 2008
SQL Server 2012
-- Stored Procedure
Oracle Database
-- Stored Procedure
SVN (Subversion)
แนวทางการทำ SEO
ปรับแต่งเว็บให้โหลดเร็ว


Hit Link
   







Load balance : Server 00
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่