Cov txheej txheem:

Koj siv angular apps li cas?
Koj siv angular apps li cas?

Video: Koj siv angular apps li cas?

Video: Koj siv angular apps li cas?
Video: Qhia caum yus tu hlub los yog saib yus tu hlub ua dab tsi 2021 2024, Kaum ib hlis
Anonim

YUAV UA LI CAS UA HAUJ LWM thiab tuav ANGULAR 2 lossis 4 qhov project ntawm lub server

  1. Kho thiab Configure koj App rau Hosting. Xyuas kom tseeb tias koj tau hloov kho / hloov txoj hauv kev rau koj cov neeg rau zaub mov nyob deb.
  2. Tsim koj tus kheej App . Tom ntej no, khiav cov lus txib tsim ntawm koj qhov project siv ng build.
  3. Upload koj App .

Yog li ntawd, kuv tuaj yeem tuav kuv lub app angular qhov twg?

Yog tias koj cov ntsiab lus yog Static ces mus tus tswv tsev koj daim ntawv thov dawb txoj kev zoo tshaj plaws yog Heroku. Koj tsuas yog yuav tsum xa cov cai thiab servers teeb tsa, hosting thiab txhua yam yog ua los ntawm heroku. Ib txoj hauv kev zoo dua yog tsim koj tus kheej angular app nrog Yeoman Lub vev xaib scaffolding cuab yeej rau niaj hnub webapps, khiav grunt thiab thawb code los ntawm git.

Ib yam li ntawd, kuv yuav tshaj tawm angular app rau IIS li cas? Xa daim ntawv thov Angular rau IIS

  1. Siv Angular Ncig Ncig ntawm Heroes ua piv txwv Angular Router daim ntawv thov.
  2. Nruab IIS nrog lub URL Rewrite Module.
  3. Deploy Tour of Heroes rau lub vev xaib hauv paus hauv IIS.
  4. Muab Kev Ncig Saib Xyuas Heroes mus rau ib qho tshwj xeeb sub-folder hauv IIS siv tus chij base-href.
  5. Siv lub vev xaib.

Tom qab ntawd, kuv yuav siv angular app ntawm GitHub li cas?

Lwm txoj kev yooj yim rau xa mus koj Angular app yog siv GitHub Nplooj ntawv . Koj yuav tsum tsim ib tug GitHub account yog tias koj tsis muaj ib qho, thiab tom qab ntawd tsim ib qho chaw cia rau koj qhov project. Ua ib daim ntawv teev npe ntawm tus neeg siv lub npe thiab qhov project npe hauv GitHub . Thaum tsim tiav, ua ib daim qauv ntawm docs/index.html thiab npe nws docs/404.html.

Yuav ua li cas angular deploy rau ntau lawm?

YUAV UA LI CAS UA HAUJ LWM thiab tuav ANGULAR 2 lossis 4 qhov project ntawm lub server

  1. TSEEM CEEB: Koj yuav tsum tau ua tiav Angular 2 lossis 4 qhov project thiab hais txog kev xa mus rau lub server. Qhib hom kev tsim khoom.
  2. Kho kom raug thiab teeb tsa koj App rau Hosting. Xyuas kom tseeb tias koj tau hloov kho / hloov txoj hauv kev rau koj cov neeg rau zaub mov nyob deb.
  3. Tsim koj lub App. Tom ntej no, khiav cov lus txib tsim ntawm koj qhov project siv ng build.
  4. Upload koj App.

Pom zoo: