简单几步 优化网站的发布流程

更新时间:2017-02-17 18:54:08 来源: 作者: 浏览1643次 文字大小:

2020欧洲杯直播时间“XIABANLE,ZOUBUZOU?”   “NIXIANZOUBA,JINWANSHANGXIAN。。。”      “。。。。”

2020欧洲杯直播时间SHANGXIANYOUSHISHANGXIAN,SHANGXIANZHEIGEDAWENTI,JIHUMEIGECHENGXUYUANMEITIANDOUHUIZHIXINGHENDUOCIDEJIXIECAOZUO。CESHIHUANJING、FANGZHENHUANJING,YUSHANGXIANHUANJING,SHENGCHANHUANJING;HULIANWANGSIWEIDE“KUAISUDIEDAI”,“XIAOBUKUAIPAO”;QIANGDIAOYONGHUTIYAN DEKUAISUYONGHUFANKUIXIANGYING DENGZHEIXIEDAHUANJING,ZAIDAOKAIFASHIJIANCANGCU、KAIFARENYUANDEPEIHEQINGKUANG、CESHIDEYANGECHENGDU、XIANXIAHUANJINGXIANSHANGHUANJINGDECHAYIDENGDENGYINSU,XIAODAOYEMIANWENZIDEXIUGAI,DADAOXINGNENGWENTI、JIAGOUWENTIDEDAFUDIAOZHENG,JIUSUANSHISHENGCHANHUANJING,DOUBUDEBUWUSHIWUKEMIANDUIZHEQIANGDADESHANGXIANYALI。

那么我们是怎么上线呢?

1,JIEZHUVSDEFABUBAWANGZHANFABUDAOBENDI;

2,CONGtfsLICHAKAN,CONGSHANGCIFABUZHIHOUKAIFARENYUANQIANRUDELISHIJILU,SHIBIECHUXUYAOGENGXINNAGEdll、NAGEYEMIANHUOview、YANGSHI、JIAOBENDENG,ANWANGZHANDEMULUJIEGOUZHIZUOYIGESHANGXIANDEZENGLIANGGENGXINBAO;

2020欧洲杯直播时间3,RUGUOYOUPEIZHIXIUGAI,FUZHIYIGEXIANSHANGDEweb.configDAOGENGXINBAO,ZAIJIASHANGHUOXIUGAIXIANGYINGDEPEIZHI;RUGUOYOUWENJIANYASUORENWUDE,ZHIXINGYASUO;DENGDENGDEXIUGAIWANSHANZENGLIANGBAOSHIZHIFUHESHANGXIANYAOQIU;

2020欧洲杯直播时间4,ZHAOYIGEHESHIDESHIJIFUGAIXIANSHANGWANGZHANMULU,RUGUOYOUDUOTAISHIJIFUWUQI,JIUZHIXINGDUOCI;HUOZHENIMENYOUTIAOBANJI,BINGQIEYOUXIANGYINGDEWENJIANDETONGBUJIZHI;ZAIHUOZHEXIANGENGXINYUSHANGXIANHUANJING,CESHIZHIHOU,XIANSHANGZHIJIEQIEHUANZHANDIANDAOYUSHANGXIAN。

2020欧洲杯直播时间HAO,YICISHANGXIANWANCHENGLE。ZHEIZHISHIWOZHENGZAIJINGLIBINGQIEYIZHIZAIZHONGFUDESHANGXIANLIUCHENG,DANGRANQIZHONGHUIJINGGUODUOGEHUANJINGDECESHIBUSHUOLE,SHULIANZHIHOUZHENGGESHANGXIANGUOCHENGKEYIZAI10JIFENZHONGNEIWANCHENG。BINGQIEWOYAOGAOSUNIDESHI,SUOYOUDEXIANSHANGFUWUQI,WOMENDOUSHISHANGYITAICESHIYITAIMEIYOUDAWENTIZHIHOUZAISHANGLINGYITAI。KEYISHUOZHEIGEGUOCHENGSUIRANMAFANDIAN,DANJIBENZUODAOWUTONGGENGXIN,YESUANSHIWENDINGGAOXIAODE,^_^ 。。。

DANGRANSHANGMIANSHUODEZUIJIANDEXIAOFUGENGXINHUODABUDINGHUOZENGJIAXINGONGNENG,YOUSHIHOUNIHUIPENGDAOPOHUAISHIDEGENGXIN,XUYAOSHUJUKUDEBIANDONGBINGQIEXIUGAIBUNENGJIANRONGXIANZAIDESHENGCHANHUANJING,NEIMEGONGXINI,FAGEWANGZHANGONGGAO,GAOGUAXIUZHANPAI,ZHAOGEBANYE,SUDUGENGXINBA,ERWANGZHANGENGXINLIUCHENGJIBENHESHANGBIANCHABUDUO。

有什么不妥吗

RUGUOYIMUDEWEIHENGLIANG,LIUCHENGWANQUANKEYIA;DANSHI,ZHENGGELIUCHENGGEGEBUZHOUQUANSHOUDONG,QUANSHOUDONG,QUANSHOUDONGA,ZUIBUKAOPUDEJIUSHISHOUDONG,CHANGYANSHUO:CHANGZAIHEBIANZOU,NAYOUBUSHOUDOU;SHOUDOUBAXIANSHANGSHUJUJIQUANSHANLE,SHOUDOUFUGAICUOWANGZHANMULULE。。。;ZENMEBIMIANSHOUDOUA,JIANSHEN。。。LAIGUANHONGNIU。。。C,ZENMEBAN,HAO,YONGGONGJUTIDAI。

如何改进

1,静态文件的处理自动化

ZHUANZHIZUOQIANDUANDEDOUHUILEJIEgruntHUOgulp,ZHEIXIEGONGJUBAQIANDUANFABUDEYASUO、HEBING、MOHUDENGQUANDOUYIDAIMADEFANGSHIZUODAOLIUCHENGHUA、ZIDONGHUA,KANDERANGVSKAIFAZHEZHEJIA。

LINGRENXINXIDESHI,VS2015YIJINGZUOLEZUGOUGONGZUO,JIARULERENWUGUANLIQI,RANGWOMENZAIFABUGUOCHENGZHONGFANGBIANDEJIARUZIJIDELUOJI;BINGQIEKEYIJICHENGgrunt、gulp、npm、bowerDENGRANGWOMENYIGENGXIANDAIDEFANGSHIGUANLIQIANDUANYILAI、LIUCHENGHUA、ZIDONGHUA;typescript、lessDENGYEYOULEGENGWANMEIDESHIYONGFANGSHI。BUDEBUSHUO,vs2015ZAIKAIFANGXINGZHEIKUAIJINBUTAIDALE,QIANGLITUIJIANYOUTIAOJIANDESUDUSHENGJIA。XIANGLEJIE15DEKANXIAZHEIGE:

15ZHIQIANRUHEWANCHENGJINGTAIWENJIANDEZIDONGHUANI?ZHEILITUIJIANYIGECHAJIAN:Web Essentials,ANZHUANGWANCHENGHOU,ZAIXIANGYINGWENJIANJIASHANGCAIDANSHANGXUANZEXIANGYINGCAOZUOZHIXINGYICIYASUOCAOZUOSHENGCHENGYASUOWENJIAN,ZHIHOUMEICIBIANJIWENJIAN,BAOCUNSHIJIUHUIZIDONGZHIXINGYASUOCAOZUO,NISUOYAOZUODEJIUSHIJIAYIGEPEIZHI:RANGSHENGCHANHUANJINGSHIYONGYASUOHUOHEBINGZHIHOUDEWENJIAN。

2020欧洲杯直播时间SHUODAOPEIZHI,RUHEBIMIANPINFANDEPEIZHIXIUGAINI?BIMIANSHANGXIANSHIDESHOUGONGXIUGAIPEIZHINI?

2,Web.config 转换

NISHIFOUDUIWANGZHANweb.configXIABIANDEWeb.Debug.config HE Web.Release.config CHANSHENGGUOXINGQU?TAMENSHISHENMEZUOYONG,NG,WOZHIDAO,WUFEIJIUSHIdebugFABUMOSHIXIA,HUISHIYONGWeb.Debug.config,XIANGYINGDEreleaseFABUMOSHIXIASHIYONGWeb.Release.config。HAHA,GONGXINI,DACUOLE。。。

我们知道web.config是一个XML格式的配置文件,而web.xxx.config也是一个XML文件,它不是配置,而是对web.config的配置的转换:它定义的内容都是对web.config里配置节点的执行一个匹配和转换的操作。

2020欧洲杯直播时间LIRU:WOMENZAIweb.configZHONGDINGYIJINGTAIWENJIANHOUZHUIDEPEIZHI:

<add key="StaticFileType" value=""/>

PEIZHIWEIKONG,ZHEIYANGBIAOSHISHIYONGYUANSHIWENJIAN。

ERZAIweb.release.configZHONG:

<add key="StaticFileType" value=".min" xdt:Locator="Match(key)" xdt:Transform="Replace"/>

ZHEIYANG,WOMENZAIreleaseMOSHIXIAFABUDEWANGZHAN,PEIZHIDEZHIJIUHUISHI .min ,ZHEIYANGJIUSHIWOMENZAISHENGCHANHUANJINGXIASHIYONGDEJINGTAIWENJIANDEHOUZHUI。

2020欧洲杯直播时间GENGXIANGXIDEZHUANHUANYUFAMIAOSHU:

TUIERGUANGZHI,WOMENTONGGUOZHEIZHONGFANGSHI,WOMENZAIKAIFASHIJIUZUOHAO web.xxx.config,BAOZHENGreleaseMOSHIXIAFABUCHULAIDEPEIZHIYIDINGSHIBUJINGGUORENHERENWEIXIUGAIJIUKEYIZHIJIEFUGAIXIANSHANGHUANJINGDEDEPEIZHIWENJIAN。

ZHEIYANG,WOMENJIUNENGBAOZHENGreleaseFABUCHULAIDEWANGZHANBAO,ZHIJIEJIUSHIKEYIFUGAIXIANSHANGMULUDEWANGZHANBAO。

2020欧洲杯直播时间DANSHIWOMENZENMEKENENGMEICIDOUQUANLIANGGENGXINA,DUIWOMENYAOCHUZENGLIANGBAO。

3,自动打出增量更新包

SHANGWENMIAOSHUDESHOUDONGDAZENGLIANGGENGXINBAODEFANGSHI,FEISHIFEILIYOURONGYICHUCUO,QISHIZHEIGEBUZHOUSHIZUIJIXIEZHONGFUYOUMEIYOUYIYIDECAOZUO,DANSHIWOMENJIUSHIZHONGFUBINGQIEHAIHUIYIZHIZHONGFU,AI。ZENMEZIDONGDAZENGLIANGBAONI?QUEQIEDESHUO,WOYEMEIYOUFANGFA。

TUIJIANYOUXINGQUDEKANXIAZHEIPIANWENZHANG:

有毅力的同学可以研究下,但是想通过另外一个方式解决,大概思路就是:用新的网站发布包和上一次的网站发布包比较,把新包里与旧包里不一样的文件按原有目录形成一个增量更新包。

2020欧洲杯直播时间TONGGUOYITONGMENGZHAO,FAXIANZAIXIANYOUDEGONGJU:NENGZUODAOLIANGGEWENJIANJIADEBIJIAO,BINGQIELIECHUBUYIZHIDEWENJIAN,DANSHIMEIYOUZHAODAONENGBABUYIYANGDEWENJIANZIDONGANYUANYOUMULUJIEGOUXINGCHENGZENGLIANGBAODEGONGNENG。ZENMEBAN,ZIJIDONGSHOU,CHENGXUYUANZUOZHEIGEXIAOGONGJUHAIBUJIANDANMA,ZUIJINLEJIELEXIAwindowXIADEshell,powershell,JIUXIEYIGEXIAOJIAOBEN。

JIAOBENYUANMA:

2020欧洲杯直播时间SUISHUOSHIYONGLAIDAZENGLIANGBAO,QISHIKEYIYONGLAIBIJIAORENYILIANGGEWENJIANJIA,RANHOUANYUANLAIDEMULUJIEGOUKAICHENGYIGECHAYIBAO。YOUXINGQUDEKEYISHIYONG,XIUGAIZUIXIABIANDEJIGEPEIZHICANSHUJIUNENGSHIYONG,DANGRANBINGMEIYOUYANGECESHI,HUANYINGYONGYUECESHI,TIYIJIAN,TIbug,TIJIAODAIMA。

说到powershell,写惯了正规的C#代码,写ps代码,简直是受虐,几乎要颠覆所有对语言的正常理解。但好在灵活,并且功能强大(能使用.net的所有功能),有兴趣的同学可以了解下,推荐两个网址:,

2020欧洲杯直播时间HAO,ZENGLIANGBAOYECHULAILE,GAIFUGAILE,JIEXIALAI

4,减少应用程序域重启次数

2020欧洲杯直播时间WOMENZHIDAODUIPEIZHIHEdllDERENHEBIANDONG,DOUHUIZAOCHENGYINGYONGCHENGXUYUDEZHONGQI,ERZAIYIGEFUGAIGUOCHENGZHONGKENENGHUIZAOCHENGYINGYONGCHENGXUYUZHONGQISHUCI,ZHEIDUIYONGHULAISHUOSHIKENENGSHIDUANZANDEXIANGYINGYANCHI,ERDUIFUWUQILAISHUOSHILIANJIESHUDEKUAISUSHANGSHENG,YINCIWOMENYINGGAIJINLIANGJIANSHAOBIMIANYINGYONGCHENGXUDEZHONGQICISHU。

<httpRuntime waitChangeNotification="5" maxWaitChangeNotification="20"/>

JIUSHIZHEILIANGGEPEIZHIXIANG,RUSHANGDEPEIZHI:ZHIYAOWOMENLIANGGEYINQIZHONGQIDEWENJIANBIANDONGJIANGEZAI5MIAONEI,BINGQIEZHENGGEFUGAIGUOCHENGZAI20MIAONEIWANCHENG,WOMENKEYIZUODAOYICIFUGAIGUOCHENGZHONGZHIZAOCHENGYINGYONGCHENGXUYUDEYICIZHONGQI。

2020欧洲杯直播时间GUANYUZHEILIANGGEXIANGDEYIYI,QINGCANJIAN:

5,文件的同步与分发

2020欧洲杯直播时间ZHEILIJIUSHUODAOLERUHEBAZENGLIANGBAOFABUDAOSHENGCHANHUANJINGLE。

2020欧洲杯直播时间1,QIEZHANDIAN,KENENGSHIZUILIXIANGDESHANGXIANFANGSHILE。DANSHIQIEZHANDIAN,SHISHIDEFANGSHIJIUSHIBAYUMINGQIANGZHIBANGDINGDAOLINGWAIYIGEZHANDIANSHANGQUTIGONGFUWU,YINWEIYIGEYUMINGZHINENGBANGDINGDETONGYIGEFUWUQIDEYIGEZHANDIANSHANG,BANGDINGGUOCHENGZHONGHUIZAOCHENGYUANLAIZHANDIANDETINGZHIYUNXING,ZAIZHEIGESHIJIANDUANJINLAIDEYONGHUJIUSHOUBUDAOZHENGCHANGDEFUWULE。ERZHIJIEFUGAIZHANDIANDEFANGSHIZAOCHENGDEYINGYONGCHENGXUZHONGQI,ZHIHUIZAOCHENGDUANZANDEYANCHI,LIXIANGQINGKUANGXIABUHUISHIQUFUWUNENGLI。

2,ZIJIDETONGBUJIZHI,YEJIUSHIZAIBAZENGLIANGFUGAIDAOYIGEZHIDINGDEWENJIANLI,ZIJIDEGONGJU,HUIJIANCEDAONAXIEWENJIANBIANDONG,RANHOUTONGBUDAOSHIJIFUWUQISHANG。ZHEIZHONGFANGSHIANQUANKUAIJIE,DANSHIQUEDIANSHIJIDIANFUWUQIHUITONGSHIJINXINGHEZHONGQIDEJINCHENG,YINGXIANGJIAODA。RUGUOFASHENGYOUWENJIANCUOWUHUOTONGBUGUOCHENGCHUCUO,ZHENGGEWANGZHANQUANBUWUFAFANGWEN。

3,SHOUDONGFUGAI,KEYIZIJIKONGZHIJIEZOU,DANSHIQUEDIANJIUSHIPASHOUDOU,YIGEDAYIFUGAICUOLEWANGZHANMULU,YINGXIANGTAIDALE。

各有优缺点,提供另外一种方法:利用文件同步工具,推荐一个开源工具FreeFileSync,在跳板机上或者一台服务器上,定义需要同步源和目标,定义同步策略,保存设置以下次使用。灵活的控制是全部一次更新,还是更新其中任意一个,做好设置之后每次只是点点鼠标的问题了。

GENGWEILIHAIDESHIYOULEZHEIGEGONGJU,QISHIWANQUANKEYIBUXUYAOSHANGBIANDAZENGLIANGBAODEGUOCHENG,GONGJUHUIBIJIAOZUOYOUWENJIAN,RANHOUZHIDUIBUTONGDEWENJIANJINXINGCHUANGJIANHUOFUZHI。

DANGRANZUOBIANWENJIANYEKEYIBUSHIQUANBUDEWANGZHANYUANMA,KEYIZHISHIWOMENSHANGBIANDACHUDEZENGLIANGBAO,ZHEIYANGZHENGGETONGBUGUOCHENGJIUBUYONGZAIQUBIJIAOQITABUXUYAOGENGXINDEWENJIAN,RANGWOMENZHENGGETONGBUGUOCHENGHUIGENGJIAKUAISU,JIANSHAOYINGYONGCHENGXUZHONGQIDEJILVHECISHU。

HAOLE,ZHENGGEGUOCHENGJIUSHIZHEIYANGDE。LIYONG.netZISHENDEYIXIEXIAOTEXINGHEYIXIEKAIYUANGONGJU,HUOZHEZIJIDEXIAODAIMA,BAZHENGGEGUOCHENGJIANHUAWEIYICIPEIZHI,YIHOUJIBENZIDONGHUADEDIBU,HAISHIHENBUCUODE。PEIZHIWANCHENGZHIHOUDEGENGXINLIUCHENGJIUBIANCHENGLE:VSFABU,DAZENGLIANGBAOHUOZHEBUDA,SHANGCHUANDAOFUWUQIYIGEWENJIANJIA,DAKAITONGBUGONGJU,XUANZEZHEIGEZHANDIANDETONGBUSHEZHI,ZHIXINGQUANBUTONGBUHUODANGEZHUBUZHIXING。ZHENGGEGUOCHENGZAIYEBUPASHOUDOULE,^_^

HOUJI

ZUOWEIYIGEZISHENMANONG,XIEDEYIPIANJISHUWEN,JINGRANZHIYOUJIXINGBUSUANDAIMADEPEIZHIDAIMA,SHUIFENTAIDA。。。

JIAYOU

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
    文章评论

    评论