ÔõÑùÔÚGitHubÉÏ°²ÅÅÄãµÄÍøÕ¾
githubÊÇÒ»¸öÊ¢ÐеĴúÂëÍйÜƽ̨£¬µ«ÄãÖªµÀÂð£¿ÄãÒ²¿ÉÒÔ½«Æä×÷ΪÃâ·ÑµÄ¾²Ì¬ÍøÕ¾ÍйÜƽ̨¡£ÔÚ±¾ÎÄÖУ¬ÎÒ½«ÏòÄãÏÈÈÝÔõÑùÔÚgithubÉÏ°²ÅÅÄãµÄ¾²Ì¬ÍøÕ¾¡£
µÚÒ»²½£º½¨ÉèÒ»¸öGitHub¿ÍÕ»
Ê×ÏÈ£¬ÄãÐèÒªÔÚGitHubÉϽ¨ÉèÒ»¸öеĿÍÕ»£¬ÓÃÓÚ´æ´¢ÄãµÄÍøÕ¾µÄÔ´´úÂë¡£ÇëÈ·±£Ñ¡ÔñPublicÑ¡ÏÒÔÈ·±£ÄúµÄÍøÕ¾¿ÉÒÔ¹ûÕæ»á¼û£¬²¢ÔÚ.gitignoreÎļþÖÐÌí¼ÓÄ㲻ϣÍû±»GitHubÍйܵÄÎļþ»òÎļþ¼Ð£¨ÀýÈçnode_modules»òdistÎļþ¼Ð£©¡£
µÚ¶þ²½£º½«´úÂëÉÏ´«µ½¿ÍÕ»
ÉÏ´«ÄãµÄÍøÕ¾´úÂ룬¿ÉÒÔÖ±½ÓÉÏ´«ÍâµØÎļþ¼Ð£¬Ò²¿ÉÒÔʹÓÃÏÂÁîÐн«´úÂëÌá½»µ½¿ÍÕ»ÖС£ÈôÊÇÄãÐèÒª¾ÙÐа汾¿ØÖÆ£¬½¨ÒéʹÓÃGit¹¤¾ß¾ÙÐÐÌá½»¡£
µÚÈý²½£ºÆôÓÃGitHub Pages
ÆôÓÃGitHub PagesÊǺÜÊǼòÆӵģ¬Ìõ¼þÊÇÄãµÄ¿ÍÕ»ÖбØÐèÓÐÒ»¸öindex.htmlÎļþ¡£ÔÚ¿ÍÕ»µÄSettingsÑ¡ÏÖУ¬ÏòÏÂת¶¯µ½GitHub PagesÇøÓò£¬²¢Ñ¡Ôñ¡°master branch¡±£¨Ö÷·ÖÖ§£©×÷ΪԴ£¬È»ºóµã»÷¡°Save¡±°´Å¥¡£
ÈôÊÇÄãµÄÍøÕ¾ÊÇReact¡¢Vue.js¡¢AngularµÈ¿ò¼Ü¿ª·¢µÄ£¬Ôò¿ÉÄÜÐèÒª½«¹¹½¨ÌìÉúµÄÎļþ·ÅÔÚdistÎļþ¼ÐÖУ¬ÒÔÈ·±£×¼È·µÄÆôÓÃGitHub Pages¡£
µÚËIJ½£º°ó¶¨×Ô½ç˵ÓòÃû
ÈôÊÇÄãÏ뽫×Ô½ç˵ÓòÃû°ó¶¨µ½GitHub PagesÉϵÄÍøÕ¾ÉÏ£¬ÄÇôҲºÜÊǼòÆÓ¡£Ö»ÐèÔÚ°²ÅÅÔڸÿÍÕ»ÖеĸùĿ¼Ï£¬Ð½¨Ò»¸öÃûΪCNAMEµÄÎļþ£¬²¢½«ÄãµÄÓòÃûдÈë¸ÃÎļþÖС£È»ºó£¬ÔÚÄãµÄÓòÃûЧÀÍÉÌ´¦ÉèÖÃÒ»¸öCNAME¼Í¼£¬Ö¸ÏòÄãµÄGitHub Pages URL¼´¿É¡£
×ܽá
ÔÚ±¾ÎÄÖУ¬ÎÒÃǼòÒªÏÈÈÝÁËÔõÑùÔÚGitHubÉÏ°²Åž²Ì¬ÍøÕ¾¡£×ܵÄÀ´Ëµ£¬ÕâÊÇÒ»¸öºÜÊÇÓÅÒìÇÒÃâ·ÑµÄÑ¡Ôñ£¬ÓÉÓÚGitHubÊÇÒ»¸öºÜÊÇÇ¿Ê¢µÄƽ̨£¬ÌṩÁ˸ßÐÔÄܵÄЧÀͺÍÎȹ̵ÄÍйܡ£ÈôÊÇÄãÕýÔÚÑ°ÕÒÒ»¸ö¼òÆӵġ¢Ãâ·ÑµÄ·½·¨À´°²ÅÅÄãµÄÍøÕ¾£¬ÄÇôGitHub Pages¾ø¶ÔÖµµÃÄãµÄʵÑé¡£
ÒÔÉϾÍÊÇÔõÑùÔÚGitHubÉÏ°²ÅÅÄãµÄÍøÕ¾µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡