Copyright 2024 - Custom text here

หลังจากที่เราได้โค้ด Andgular เสร็จแล้วและต้องการ อัพโหลดไป Server เราจะ Deploy Code Angular อย่างไร ?

 

ng build --prod --deploy-url http://ชื่อเว็บและPath --base-href http://ชือเว็บและPath

 

Screen Shot 2561 12 11 at 07.57.00

จากตัวอย่างนี่ครับ

 Screen Shot 2561 12 11 at 07.57.54

 สักพัก Angular จะ Deploy ไฟร์ และ โฟวเตอร์ ของ โปรเจ็ค Angular ที่เราจะอัพโหลดไป Server ไว้ที่ โฟวเตอร์ dist

Screen Shot 2561 12 11 at 07.58.06

ลองดูที่ไฟร์ index.html ว่า path ของ stylesheet ถูกต้องไหม. ? ถ้าจะอัพไปเว็บ

Screen Shot 2561 12 11 at 07.57.30

อัพโหลด ทั้งหมดไป Server เลยครับ

Screen Shot 2561 12 11 at 07.58.26

ลองทดสอบที่ http://www.androidthai.in.th/hit/MasterUNG/ ครับ

 

คอร์ส สอนโปรเจ็คแอนดรอยด์ ตัวต่อตัว

privateProject2019v1

คอร์ส เบสิกแอนดรอยด์ สอน ตัวต่อตัว

privateAndroid2019v1

คอร์ส iOS สอน ตัวต่อตัว

privateIos2019V1

คอร์ส Flutter สอน ตัวต่อตัว

privateFlutter2019v1

f t g