锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲偷偷自拍高清,亚洲图片一区二区,永久亚洲成a人片777777http://www.tkk7.com/sshwsfc/category/17421.html1=1zh-cnTue, 27 Feb 2007 10:38:59 GMTTue, 27 Feb 2007 10:38:59 GMT60璇磋Rails鍚э紝config鐨勫箷鍚庡伐浣?/title><link>http://www.tkk7.com/sshwsfc/archive/2006/11/21/82487.html</link><dc:creator>宸矙</dc:creator><author>宸矙</author><pubDate>Tue, 21 Nov 2006 04:10:00 GMT</pubDate><guid>http://www.tkk7.com/sshwsfc/archive/2006/11/21/82487.html</guid><wfw:comment>http://www.tkk7.com/sshwsfc/comments/82487.html</wfw:comment><comments>http://www.tkk7.com/sshwsfc/archive/2006/11/21/82487.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/sshwsfc/comments/commentRss/82487.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/sshwsfc/services/trackbacks/82487.html</trackback:ping><description><![CDATA[ <p>璇磖uby鏄紓鐨勮娉曟湁鐐逛笉濡ュ綋錛屽姩鎬佽璦閲岄潰涓嶄箯榪欐牱鐨勮娉曞嚭鐜般備絾鏄湅浜嗕竴浜涙簮鐮佸悗鍙戠幇錛屼嬌鐢╮uby鐨勭敤娉曠湡鐨勫悇鏈変笉鍚岋紝灝卞儚澶у浠ュ墠璇寸殑錛宺uby姣忎釜浜哄啓鍑烘潵鐨勫彲鑳介兘涓嶅悓銆?/p> <p>鐜版潵璇碦ails閲岄潰濡備綍鍔犺澆config鐨勫惂銆?/p> <p>鍦╦ava閲岄潰config緇濆鏄竴涓猺esource鏂囦歡錛岀劧鍚庨氳繃璇誨彇閰嶇疆鐨勫伐鍏峰姞鍏ヨ繘鏉ワ紝鍦ㄥ垎鏋愬鐞嗐?/p> <p>鍦≧OR閲岄潰瀹屽叏涓嶆槸榪欎箞鍥炰簨銆?/p> <p>1.棣栧厛澶у瑕佷簡瑙g殑鏄紝鍦ㄦ垜浠惎鍔?ruby script/server 鐨勬椂鍊欙紝rails鍋氫簡涓緋誨垪鐨勫鐞嗭紝鏈鍚庝粬鎵ц浜?font face="Arial">environment.rb</font></p> <div id="9fdttvp" class="code_title"> <em> <font color="#990033">ruby 浠g爜</font> </em> <br /> </div> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #000000">Rails::Initializer.run聽do聽</span> <span style="COLOR: #000000">|</span> <span style="COLOR: #000000">config</span> <span style="COLOR: #000000">|</span> <span style="COLOR: #000000">聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽</span> <span style="COLOR: #008000">#</span> <span style="COLOR: #008000">聽榪欓噷鑳芥彃鍏ユ垜浠嚜宸辯殑閰嶇疆銆偮犅犅犅?/span> <span style="COLOR: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #000000">聽聽</span> <span style="COLOR: #008000">#</span> <span style="COLOR: #008000">聽config.聽涔嬬被聽聽聽聽</span> <span style="COLOR: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #000000">end聽聽聽</span> </div> <p class="alt">榪欓噷鐨刢onfig鍏跺疄鏄疘nitializer鍐呴儴鐨勪竴涓彉閲忥紝鎺屾帶鍏ㄥ眬鐨勯厤緗俊鎭紝鎴戜滑鍙互浣跨敤榪欎釜config鏉ラ厤緗垜浠兂瑕佺殑銆?span><span>Rails::Initializer.run鐨勬簮鐮佹槸榪欐牱鐨勶紝yield鍐嶄竴嬈℃樉紺轟簡浠栫殑濞佸姏錛岃鎴戜滑鍦ㄩ厤緗枃浠朵腑寰椾互閰嶇疆config銆傜劧鍚庡疄渚嬪寲浜嗕竴涓猧nitializer聽涔嬪悗錛屾妸config浣滀負鍙傛暟浼犲叆浜嗐?/span></span></p> <div id="jv9rlld" class="code_title"> <em> <font color="#990033">ruby 浠g爜</font> </em> <br /> </div> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #0000ff">def</span> <span style="COLOR: #000000">聽self.run(command聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽:process,聽configuration聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽Configuration.new)聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽</span> <span style="COLOR: #0000ff">yield</span> <span style="COLOR: #000000">聽configuration聽</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">聽block_given?聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽initializer聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽new聽configuration聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽initializer.send(command)聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽initializer聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />end聽聽聽</span> </div> <p class="alt">鎴戜滑鎺ョ潃寰涓嬭蛋錛屽彲浠ョ湅鍒癷nitializer聽鍋氫簡涓緋誨垪鐨勫垵濮嬪寲宸ヤ綔錛屽寘鎷琹oad_path鐨勮瀹氾紝璺敱鐨勫垵濮嬪寲錛屽拰activerecord鐨勫垵濮嬪寲銆傛垜浠叧蹇冪殑榪樻槸閰嶇疆濡備綍璧蜂綔鐢紝閭d箞鏉ョ湅鐪?font face="Arial">environments鐩綍涓嬮潰鐨勯厤緗枃浠舵槸濡備綍瀵煎叆鐨勫惂銆?/font></p> <div id="z9997d9" class="code_title"> <em> <font color="#990033">ruby 浠g爜</font> </em> </div> <div id="pvbl9v9" class="dp-highlighter"> <div id="7hxpxhx" class="bar"> </div> </div> <p> <span id="b9fr99j" class="builtin"> </span> </p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #0000ff">def</span> <span style="COLOR: #000000">聽load_environment聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽silence_warnings聽do聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽config聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽configuration聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽constants聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽self.</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">.constants聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽eval(IO.read(configuration.environment_path),聽binding)聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽(self.</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">.constants聽</span> <span style="COLOR: #000000">-</span> <span style="COLOR: #000000">聽constants).each聽do聽</span> <span style="COLOR: #000000">|</span> <span style="COLOR: #000000">const</span> <span style="COLOR: #000000">|</span> <span style="COLOR: #000000">聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽Object.const_set(const,聽self.</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">.const_get(const))聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽end聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽end聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />end聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span> </div> <p>IO<span>.read(configuration.environment_path) 錛岋紝榪欓噷灝變笉浣跨敤浠涔堝洖璋冧笉鍥炶皟浜嗭紝鑰屾槸騫茶剢IO鎷垮嚭鏉val涓鎶婏紝榪欓噷涔熸槸鍚冧簡涓鎯婏紝榪欐牱涔熷彲浠ュ憖~~~~~~~鐒跺悗錛屾垜浠彲浠ョ湅鐪嬶紝浠栧鐞嗗父閲忕殑鏂規硶錛屾妸鑷繁閰嶇疆鏂囦歡涓殑甯擱噺鍏ㄩ儴鏀懼叆Object閲岄潰錛岃搗鍒板叏灞甯擱噺鐨勭洰鐨勩?/span></p> <p> <span>鏈緇濈殑榪樻槸<font face="Arial">initialize_framework_settings錛屼嬌鐢ㄤ簡鏈変竴涓猺uby鐨勬妧宸с?/font></span> </p> <span> <div id="7hh9nvd" class="code_title"> <em> <font color="#990033">ruby 浠g爜</font> </em> </div> <div id="rfp7r99" class="bar"> </div> <p class="alt"> </p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #0000ff">def</span> <span style="COLOR: #000000">聽initialize_framework_settings聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽configuration.frameworks.each聽do聽</span> <span style="COLOR: #000000">|</span> <span style="COLOR: #000000">framework</span> <span style="COLOR: #000000">|</span> <span style="COLOR: #000000">聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽base_class聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽framework.to_s.camelize.constantize.const_get(</span> <span style="COLOR: #800000">"</span> <span style="COLOR: #800000">Base</span> <span style="COLOR: #800000">"</span> <span style="COLOR: #000000">)聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽configuration.send(framework).each聽do聽</span> <span style="COLOR: #000000">|</span> <span style="COLOR: #000000">setting,聽value</span> <span style="COLOR: #000000">|</span> <span style="COLOR: #000000">聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽base_class.send(</span> <span style="COLOR: #800000">"</span> <span style="COLOR: #800000">#{setting}=</span> <span style="COLOR: #800000">"</span> <span style="COLOR: #000000">,聽value)聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽end聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽end聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />end聽聽聽</span> </div> <p>configuration.frameworks閲岄潰瀛樻斁鐨勬槸rails涓釜緇勪歡鐨勫悕瀛楋紝姣旀柟璇碼ctive_record涔嬬被銆傜劧鍚庢妸榪欎釜鍚嶅瓧澶у啓杞崲錛岀劧鍚庣敤constantize鍙栧緱ActiveRecord榪欎釜Module(娉ㄦ剰錛岃繖浜涗笢瑗塊兘鍦╝ctivesupport閲岄潰鍛紝activesupport/lib/active_support/core_ext/string/inflections.rb )銆傜劧鍚庣敤const_get鍙栧緱榪欎釜妯″潡鐨凚ase綾伙紝涔熷氨鏄疉ctiveRecord::Base榪欎釜綾諱簡錛堜笅闈㈤兘鍙仛Base綾伙級錛屾墍鏈夌殑Rails鐨勭粍浠墮兘鏄繖涓懡鍚嶈鍒欐敼澶╂垜浠嚜宸辨兂瑕佸仛涓涓猂ails鐨勭粍浠跺姞榪涙潵錛屼篃鍙互榪欐牱錛堜絾鏄紼嶅井淇敼涓涓簮鐮侊級銆?/p> <p>鐒跺悗錛屾垜浠惂config閲岄潰鐨勫唴瀹圭粰Base綾匯俢onfiguration.send(framework)鏄皟鐢ㄤ竴涓粍浠跺悕縐扮殑鏂規硶錛屾瘮鏂硅active_record錛屽氨鏄幓鐨刢onfig閲岄潰鐨刟ctive_record灞炴э紙榪欐槸鏈鍩烘湰鐨勶級錛岄氳繃鍚庨潰鐨刣o鎴戜滑鍙互鐪嬪埌config榪斿洖鐨勬槸涓涓猦ash錛岀劧鍚庢妸hash涓瘡涓涓猭ey浣滀負鍙橀噺錛寁alue涓轟紶鍏ュ鹼紝浼犲叆Base綾匯傘傘傝繖閲屽ぇ瀹跺簲璇ユ病浠涔堥棶棰樹簡錛岀湅鐪嬫垜浠殑config鏂囦歡鏄庝箞鍐欑殑鍚с?/p> <div id="79pz7db" class="code_title"> <em> <font color="#990033">ruby 浠g爜</font> </em> <br /> </div> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #008000">#</span> <span style="COLOR: #008000">聽Settings聽specified聽here聽will聽take聽precedence聽over聽those聽in聽config/environment.rb聽聽聽聽</span> <span style="COLOR: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #000000">聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #008000">#</span> <span style="COLOR: #008000">聽In聽the聽development聽environment聽your聽application's聽code聽is聽reloaded聽on聽聽聽聽</span> <span style="COLOR: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />#</span> <span style="COLOR: #008000">聽every聽request.聽聽This聽slows聽down聽response聽time聽but聽is聽perfect聽for聽development聽聽聽聽</span> <span style="COLOR: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />#</span> <span style="COLOR: #008000">聽since聽you聽don't聽have聽to聽restart聽the聽webserver聽when聽you聽make聽code聽changes.聽聽聽聽</span> <span style="COLOR: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #000000">config.cache_classes聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽false聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #008000">#</span> <span style="COLOR: #008000">聽Log聽error聽messages聽when聽you聽accidentally聽call聽methods聽on聽nil.聽聽聽聽</span> <span style="COLOR: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #000000">config.whiny_nils聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽true聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #008000">#</span> <span style="COLOR: #008000">聽Enable聽the聽breakpoint聽server聽that聽script/breakpointer聽connects聽to聽聽聽聽</span> <span style="COLOR: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #000000">config.breakpoint_server聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽true聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #008000">#</span> <span style="COLOR: #008000">聽Show聽full聽error聽reports聽and聽disable聽caching聽聽聽聽</span> <span style="COLOR: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #000000">config.action_controller.consider_all_requests_local聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽true聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />config.action_controller.perform_caching聽聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽false聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />config.action_view.cache_template_extensions聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽false聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />config.action_view.debug_rjs聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽true聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #008000">#</span> <span style="COLOR: #008000">聽Don't聽care聽if聽the聽mailer聽can't聽send聽聽聽聽</span> <span style="COLOR: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #000000">config.action_mailer.raise_delivery_errors聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽false聽聽聽</span> </div> <p class="alt">鍝︼紝鐪嬬潃寰堟檿鍚э紝config灝辨槸鎴戜滑鐨勯厤緗璞★紝鎸夌収鎴戜滑涓婇潰鐨勮娉曪紝config.action_view涔嬬被framework鐨勫彉閲忓簲璇ユ槸涓涓猦ash鎵嶅鍛錛屽鏋滄槸hash鐨勮瘽錛屼笉搴旇鐢ㄨ繖鏍風殑鏂瑰紡浼犲叆錛屽彲鑳戒細鐢?config.action_view = {:debug_rjs => true}鏉ヤ紶鍏ャ?/p> <p>OK.鎴戜滑鏉ョ湅榪欎釜鍙橀噺鍒板簳鏄粈涔堟牱鐨刪ash銆?/p> <div id="17xrh9d" class="code_title"> <em> <font color="#990033">ruby 浠g爜</font> </em> </div> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #0000ff">def</span> <span style="COLOR: #000000">聽initialize聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽<img src="http://www.tkk7.com/images/dot.gif" />.聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽<img src="http://www.tkk7.com/images/dot.gif" />.聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽</span> <span style="COLOR: #0000ff">for</span> <span style="COLOR: #000000">聽framework聽</span> <span style="COLOR: #0000ff">in</span> <span style="COLOR: #000000">聽default_frameworks聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽self.send(</span> <span style="COLOR: #800000">"</span> <span style="COLOR: #800000">#{framework}=</span> <span style="COLOR: #800000">"</span> <span style="COLOR: #000000">,聽OrderedOptions.new)聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽end聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />end聽聽聽</span> </div> <p class="alt">鍦ㄥ垵濮嬪寲榪欎簺鍙橀噺鐨勬椂鍊欙紝Rails緇欎粬璧嬪間負OrderedOptions.<span id="fphx1rl" class="keyword">new銆傝繖涓壒孌婄殑綾誨瀷鍙兘灝辨槸鍏抽敭銆?/span></p> <span id="fpfr7tj" class="keyword"> <div id="dnhdjt9" class="code_title"> <em> <font color="#990033">ruby 浠g爜</font> </em> <br /> </div> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">聽OrderedOptions聽</span> <span style="COLOR: #000000"><</span> <span style="COLOR: #000000">聽OrderedHash聽</span> <span style="COLOR: #008000">#</span> <span style="COLOR: #008000">:nodoc:聽聽聽聽</span> <span style="COLOR: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #000000">聽聽</span> <span style="COLOR: #0000ff">def</span> <span style="COLOR: #000000">聽[]</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">(key,聽value)聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽super(key.to_sym,聽value)聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽end聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽</span> <span style="COLOR: #0000ff">def</span> <span style="COLOR: #000000">聽[](key)聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽super(key.to_sym)聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽end聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽</span> <span style="COLOR: #0000ff">def</span> <span style="COLOR: #000000">聽method_missing(name,聽</span> <span style="COLOR: #000000">*</span> <span style="COLOR: #000000">args)聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">聽name.to_s聽</span> <span style="COLOR: #000000">=~</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">/</span> <span style="COLOR: #000000">(.</span> <span style="COLOR: #000000">*</span> <span style="COLOR: #000000">)</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">$</span> <span style="COLOR: #000000">/</span> <span style="COLOR: #000000">聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽self[$</span> <span style="COLOR: #000000">1</span> <span style="COLOR: #000000">.to_sym]聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽args.first聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff">else</span> <span style="COLOR: #000000">聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽self[name]聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽end聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽end聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />end聽聽聽</span> </div> <p class="alt">鐪嬪埌鍏朵腑鐨勭巹濡欎簡涔堬紝method_missing~~~錛侊紒 濡傛灉璋冪敤涓涓?*=鐨勬柟娉?錛屽氨鍍忓綋鐢ㄤ紶鍏ヤ竴涓狧ASH鐨勫鹼紝key灝辨槸鏂規硶鐨勫悕瀛椼?/p> <p>涔熷氨鏄細<span>config.action_view.debug_rjs聽聽=聽</span><span id="vrf9htt" class="keyword">true</span><span>聽鐩稿綋浜?span>config.action_view[:debug_rjs] = true</span></span></p> <p> <span> <span>OK 錛屽ぇ浣撲笂鎻忚堪浜嗕竴涓嬶紝鍙互鐪嬪埌綆鍗曠殑涓涓猂ails鍒濆鍖栧凡緇忕粰鎴戜滑灞曠ず浜嗗嚑涔庡叏閮╮uby鐨勯潛涓戒箣澶勶紝榪欒兘璇存槑錛岃繖涓寒鐐硅偗瀹氭槸璐┛rails鐨勫熀鏈紝鍦ㄤ互鍚庣殑娣卞叆鐮旂┒涓垜浠氨鑳界湅鍒頒簡銆?/span> </span> </p> </span> </span> <img src ="http://www.tkk7.com/sshwsfc/aggbug/82487.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/sshwsfc/" target="_blank">宸矙</a> 2006-11-21 12:10 <a href="http://www.tkk7.com/sshwsfc/archive/2006/11/21/82487.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>璇磋Rails鍚э紝鍚姩寮濮嬨?/title><link>http://www.tkk7.com/sshwsfc/archive/2006/11/20/82401.html</link><dc:creator>宸矙</dc:creator><author>宸矙</author><pubDate>Mon, 20 Nov 2006 15:43:00 GMT</pubDate><guid>http://www.tkk7.com/sshwsfc/archive/2006/11/20/82401.html</guid><wfw:comment>http://www.tkk7.com/sshwsfc/comments/82401.html</wfw:comment><comments>http://www.tkk7.com/sshwsfc/archive/2006/11/20/82401.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/sshwsfc/comments/commentRss/82401.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/sshwsfc/services/trackbacks/82401.html</trackback:ping><description><![CDATA[ <p>涓轟簡璁板綍鑷繁鐪婻ails婧愮爜鐨勮繃紼嬶紝鍏ㄧ▼璁板綍鏃犲簾璇濄?br /><br />鎴戜滑鐪嬬湅script/server閮藉共浜嗕粈涔?/p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #000000">require聽File.dirname(__FILE__)聽</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">'</span> <span style="COLOR: #000000">/../config/boot</span> <span style="COLOR: #000000">'</span> <span style="COLOR: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />require聽</span> <span style="COLOR: #000000">'</span> <span style="COLOR: #000000">commands/server</span> <span style="COLOR: #000000">'</span> </div> <br />寮曠敤浜哹oot.rb榪欎釜鏂囦歡銆傜湅鏉ヨ繖涓枃浠舵槸rails鍚姩鐨勫叆鍙o紝鏉ョ湅鐪嬫庝箞鍥炰簨鍚с?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">unless聽defined?(RAILS_ROOT)<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽root_path聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽File.join(File.dirname(</span><span style="COLOR: #800080">__FILE__</span><span style="COLOR: #000000">),聽</span><span style="COLOR: #800000">'</span><span style="COLOR: #800000">..</span><span style="COLOR: #800000">'</span><span style="COLOR: #000000">)<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽unless聽RUBY_PLATFORM聽</span><span style="COLOR: #000000">=~</span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">mswin32</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽require聽</span><span style="COLOR: #800000">'</span><span style="COLOR: #800000">pathname</span><span style="COLOR: #800000">'</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽root_path聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽Pathname.new(root_path).cleanpath(true).to_s<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽end<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽RAILS_ROOT聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽root_path<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />end</span></div>榪欎竴閮ㄥ垎瀹氫箟浜哛AILS_ROOT榪欎釜緋葷粺鐨勫叏灞鍙橀噺錛屾寚瀹氫簡欏圭洰鐨勬牴鐩綍錛屽ぇ瀹跺彲浠ュ湪浠ュ悗鍗庝附鐨勪嬌鐢ㄤ簡銆?br /><br />涓嬩竴閮ㄥ垎鏄壘鍒皉ails錛岀矖鐣ョ湅涓涓嬨?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽File.directory?(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">#{RAILS_ROOT}/vendor/rails</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">)<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽require聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">#{RAILS_ROOT}/vendor/rails/railties/lib/initializer</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽require聽</span><span style="COLOR: #800000">'</span><span style="COLOR: #800000">rubygems</span><span style="COLOR: #800000">'</span></div>榪欓噷鑳界湅鍒幫紝浠栧厛璺戝埌<font color="#800000">vendor/rails<font color="#000000">鍘繪壘rails浜嗭紝榪欏氨鏄垜浠負浠涔堣兘鍦ㄦ彃浠墮噷鐢╮ails鏄師鍥犮傚鏋滄病鏈夐偅涔坓ems鐨勫共媧匯?br />鎺ヤ笅鏉ユ槸鍒濆鍖栦竴涓媗oad_path錛屾病浠涔堢湅鐨勪簡銆俠oot.rb灝辮繖鏍風殑鍚с?br /><br />鍥炲埌script/server鐨勭浜岃錛屽寘鍚簡<span style="COLOR: #000000">'</span><span style="COLOR: #000000">commands/server</span><span style="COLOR: #000000">'榪欎釜鏂囦歡錛岃繖涓枃浠舵槸浠涔堬紵Rails鐨勬簮鐮侀噷闈㈡壘鍚с傛垜浠湪Rails鐨勬簮鐮侀噷闈㈡壘鍒拌繖涓枃浠躲?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">require聽</span><span style="COLOR: #800000">'</span><span style="COLOR: #800000">active_support</span><span style="COLOR: #800000">'</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />require聽</span><span style="COLOR: #800000">'</span><span style="COLOR: #800000">fileutils</span><span style="COLOR: #800000">'</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />begin<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽require_library_or_gem聽</span><span style="COLOR: #800000">'</span><span style="COLOR: #800000">fcgi</span><span style="COLOR: #800000">'</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />rescue聽Exception<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽</span><span style="COLOR: #008000">#</span><span style="COLOR: #008000">聽FCGI聽not聽available</span><span style="COLOR: #008000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #000000">end<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />server聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽case聽ARGV.first<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽when聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">lighttpd</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽ARGV.shift<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽when聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">webrick</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽ARGV.shift<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽RUBY_PLATFORM聽!</span><span style="COLOR: #000000">~</span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">mswin</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">&&</span><span style="COLOR: #000000">聽!silence_stderr聽{聽`lighttpd聽</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">version`聽}.blank?聽</span><span style="COLOR: #000000">&&</span><span style="COLOR: #000000">聽defined?(FCGI)<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">lighttpd</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">webrick</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽end<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />end<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽server聽</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">webrick</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽puts聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">=>聽Booting聽WEBrick<img src="http://www.tkk7.com/images/dot.gif" /></span><span style="COLOR: #800000">"</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽puts聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">=>聽Booting聽lighttpd聽(use聽'script/server聽webrick'聽to聽force聽WEBrick)</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />end<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />FileUtils.mkdir_p(</span><span style="COLOR: #000000">%</span><span style="COLOR: #000000">w(聽tmp</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">sessions聽tmp</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">cache聽tmp</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">sockets聽))<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />require聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">commands/servers/#{server}</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></div></span></font></font>娌℃兂鍒癆ctiveRecord灞呯劧鏄湪榪欓噷寮曠敤鐨勶紝榪欎釜ActiveRecord閲岄潰鎵╁睍浜嗗緢瀵筊uby鐨勬棦鏈夌被鍨嬶紝鎵浠ユ垜浠湅婧愮爜鐨勬椂鍊欏鏋滃彂鐜版湁涓嶇啛鎮夌殑鏂規硶錛屽氨鏉ヨ繖閲屾壘鎵撅紝褰撶劧錛岀湅Rails鐨凙PI鏄渶濂界殑閫夋嫨銆?br /><br />浠庡弬鏁頒竴鐩簡鐒訛紝鎴戜滑鍙互浼犲叆server鐨勫悕瀛楋紝<span style="COLOR: #800000">lighttpd鍜?span style="COLOR: #800000">webrick<font color="#000000">錛屾牴鎹笉鍚岀殑server閫夋嫨涓嶅悓鐨剆erver鏂囦歡鏉ヨ鍙栥傛垜浠繕鏄湅鐪?span style="COLOR: #800000">webrick<font color="#000000">鐨勫惂銆?br /><br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">require聽</span><span style="COLOR: #800000">'</span><span style="COLOR: #800000">webrick</span><span style="COLOR: #800000">'</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />require聽</span><span style="COLOR: #800000">'</span><span style="COLOR: #800000">optparse</span><span style="COLOR: #800000">'</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />OPTIONS聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽:port聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #000000">=></span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">3000</span><span style="COLOR: #000000">,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽:ip聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #000000">=></span><span style="COLOR: #000000">聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">0.0.0.0</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽:environment聽聽聽聽聽</span><span style="COLOR: #000000">=></span><span style="COLOR: #000000">聽(ENV[</span><span style="COLOR: #800000">'</span><span style="COLOR: #800000">RAILS_ENV</span><span style="COLOR: #800000">'</span><span style="COLOR: #000000">]聽</span><span style="COLOR: #000000">||</span><span style="COLOR: #000000">聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">development</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">).dup,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽:server_root聽聽聽聽聽</span><span style="COLOR: #000000">=></span><span style="COLOR: #000000">聽File.expand_path(RAILS_ROOT聽</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">/public/</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">),<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽:server_type聽聽聽聽聽</span><span style="COLOR: #000000">=></span><span style="COLOR: #000000">聽WEBrick::SimpleServer,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽:charset聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #000000">=></span><span style="COLOR: #000000">聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">UTF-8</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽:mime_types聽聽聽聽聽聽</span><span style="COLOR: #000000">=></span><span style="COLOR: #000000">聽WEBrick::HTTPUtils::DefaultMimeTypes<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />}<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />ARGV.options聽do聽</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000">opts</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽script_name聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽File.basename($0)<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽opts.banner聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Usage:聽ruby聽#{script_name}聽[options]</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽opts.separator聽</span><span style="COLOR: #800000">""</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽opts.on(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">-p</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">--port=port</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,聽Integer,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Runs聽Rails聽on聽the聽specified聽port.</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Default:聽3000</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">)聽{聽</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000">v</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000">聽OPTIONS[:port]聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽v聽}<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽opts.on(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">-b</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">--binding=ip</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,聽String,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Binds聽Rails聽to聽the聽specified聽ip.</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Default:聽0.0.0.0</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">)聽{聽</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000">v</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000">聽OPTIONS[:ip]聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽v聽}<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽opts.on(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">-e</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">--environment=name</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,聽String,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Specifies聽the聽environment聽to聽run聽this聽server聽under聽(test/development/production).</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Default:聽development</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">)聽{聽</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000">v</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000">聽OPTIONS[:environment]聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽v聽}<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽opts.on(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">-m</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">--mime-types=filename</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,聽String,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Specifies聽an聽Apache聽style聽mime.types聽configuration聽file聽to聽be聽used聽for聽mime聽types</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Default:聽none</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">)聽{聽</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000">mime_types_file</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000">聽OPTIONS[:mime_types]聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽WEBrick::HTTPUtils::load_mime_types(mime_types_file)聽}<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽opts.on(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">-d</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">--daemon</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Make聽Rails聽run聽as聽a聽Daemon聽(only聽works聽if聽fork聽is聽available聽--聽meaning聽on聽*nix).</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽)聽{聽OPTIONS[:server_type]聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽WEBrick::Daemon聽}<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽opts.on(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">-c</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">--charset=charset</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,聽String,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Set聽default聽charset聽for聽output.</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Default:聽UTF-8</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">)聽{聽</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000">v</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000">聽OPTIONS[:charset]聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽v聽}<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽opts.separator聽</span><span style="COLOR: #800000">""</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽opts.on(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">-h</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">--help</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Show聽this聽help聽message.</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">)聽{聽puts聽opts;聽exit聽}<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽opts.parse!<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />end<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />ENV[</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">RAILS_ENV</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">]聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽OPTIONS[:environment]<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />RAILS_ENV.replace(OPTIONS[:environment])聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽defined?(RAILS_ENV)<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />require聽RAILS_ROOT聽</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">/config/environment</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />require聽</span><span style="COLOR: #800000">'</span><span style="COLOR: #800000">webrick_server</span><span style="COLOR: #800000">'</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />OPTIONS[</span><span style="COLOR: #800000">'</span><span style="COLOR: #800000">working_directory</span><span style="COLOR: #800000">'</span><span style="COLOR: #000000">]聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽File.expand_path(RAILS_ROOT)<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />puts聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">=>聽Rails聽application聽started聽on聽http://#{OPTIONS[:ip]}:#{OPTIONS[:port]}</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />puts聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">=>聽Ctrl-C聽to聽shutdown聽server;聽call聽with聽--help聽for聽options</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽OPTIONS[:server_type]聽</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">聽WEBrick::SimpleServer<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />DispatchServlet.dispatch(OPTIONS)<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></div></font></span></font></span></span>鏈潵涓嶆兂鎶婂ぇ孌電殑浠g爜璐翠笂鏉ワ紝浣嗘槸榪欓噷闈㈢殑鍐呭鍙兘澶у閮芥瘮杈冨叧蹇冿紝娑夊強鍒皊erver鐨勫惎鍔ㄥ弬鏁般?br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽:port聽聽聽聽聽聽聽聽聽聽聽聽<span style="COLOR: #000000">=></span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">绔彛</span><span style="COLOR: #000000">,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽:ip聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #000000">=></span><span style="COLOR: #000000">聽server ip</span><span style="COLOR: #000000">,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽:environment聽聽聽聽聽</span><span style="COLOR: #000000">=></span><span style="COLOR: #000000">榪愯鐜</span><span style="COLOR: #000000">,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽:server_root聽聽聽聽聽</span><span style="COLOR: #000000">=></span><span style="COLOR: #000000">聽web璁塊棶鐨勭洰褰曪紝錛堝緢澶氫漢闂繖涓庝箞鏀癸級</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽:server_type聽聽聽聽聽</span><span style="COLOR: #000000">=></span><span style="COLOR: #000000">聽WEBrick::SimpleServer,<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽:charset聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #000000">=></span><span style="COLOR: #000000">聽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">UTF-8</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">, 緙栫爜<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽:mime_types聽聽聽聽聽聽</span><span style="COLOR: #000000">=></span><span style="COLOR: #000000">聽WEBrick::HTTPUtils::DefaultMimeTypes<br /><br />鍚庨潰鐨剅equire聽寮曞叆浜嗕袱涓枃浠訛紝涓涓槸<span style="COLOR: #800000">'</span><span style="COLOR: #800000">webrick_server</span><span style="COLOR: #800000">'<font color="#000000">錛屽埆鐪嬶紝灝辨槸浠栥傚彟澶栦竴涓槸</font><font color="#800000">config/environment</font><font color="#000000">錛岃繖涓枃浠舵槸緋葷粺鐨勫叏灞閰嶇疆鏂囦歡錛屽緢閲嶈錛屾垜浠繕鏄笅嬈$湅鐪嬭繖涓枃浠跺幓鍚с傞噷闈㈣繕鐪熸尯鏈夋剰鎬濄?br /><br />錛堜笉鐭ラ亾blogjava璁╀笉璁╁啓ROR鐨勬枃绔狅紝鐪嬪埌鏈変漢鍐欎簡鎵浠ユ斁鍦ㄩ欏典簡錛屽鏋滀笉濡ワ紝鎴戜細灝藉揩鍒犻櫎錛?/font></span></span><img src ="http://www.tkk7.com/sshwsfc/aggbug/82401.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/sshwsfc/" target="_blank">宸矙</a> 2006-11-20 23:43 <a href="http://www.tkk7.com/sshwsfc/archive/2006/11/20/82401.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://kkjk123.com" target="_blank">亚洲日韩中文字幕一区</a>| <a href="http://2h6m.com" target="_blank">亚洲人6666成人观看</a>| <a href="http://kanboy.com" target="_blank">日亚毛片免费乱码不卡一区</a>| <a href="http://nyminer.com" target="_blank">成年人在线免费看视频</a>| <a href="http://paweax.com" target="_blank">亚洲人精品亚洲人成在线</a>| <a href="http://44od.com" target="_blank">大地资源在线观看免费高清</a>| <a href="http://kutuwo.com" target="_blank">亚洲国色天香视频</a>| <a href="http://xmmn77.com" target="_blank">搡女人真爽免费视频大全</a>| <a href="http://ccc321.com" target="_blank">亚洲人成色4444在线观看</a>| <a href="http://wwwdd312.com" target="_blank">日本不卡高清中文字幕免费</a>| <a href="http://tsxyhq.com" target="_blank">久久久久久亚洲精品无码</a>| <a href="http://ydxcsh.com" target="_blank">国产精品无码素人福利免费</a>| <a href="http://chinashineway.com" target="_blank">午夜亚洲国产精品福利</a>| <a href="http://www6yg6yg.com" target="_blank">亚洲区小说区图片区</a>| <a href="http://3688008.com" target="_blank">西西人体免费视频</a>| <a href="http://www6yg6yg.com" target="_blank">亚洲高清美女一区二区三区</a>| <a href="http://lshwork.com" target="_blank">国产卡一卡二卡三免费入口</a>| <a href="http://3789re.com" target="_blank">亚洲欧美日韩中文无线码</a>| <a href="http://323799.com" target="_blank">丁香亚洲综合五月天婷婷</a>| <a href="http://njyadi.com" target="_blank">97在线免费视频</a>| <a href="http://hhgcnet.com" target="_blank">亚洲黄色一级毛片</a>| <a href="http://vvihh.com" target="_blank">国产精品va无码免费麻豆</a>| <a href="http://rhacu.com" target="_blank">xxxx日本在线播放免费不卡</a>| <a href="http://601508.com" target="_blank">亚洲av中文无码乱人伦在线播放</a>| <a href="http://adcacs.com" target="_blank">91在线老王精品免费播放</a>| <a href="http://ksdhao.com" target="_blank">亚洲午夜无码久久久久小说 </a>| <a href="http://35633487.com" target="_blank">免费成人福利视频</a>| <a href="http://yixinbanks.com" target="_blank">亚洲中文字幕无码av</a>| <a href="http://www-135888.com" target="_blank">亚洲精品黄色视频在线观看免费资源</a>| <a href="http://www-175345.com" target="_blank">国产精品免费久久久久久久久 </a>| <a href="http://taoh2510.com" target="_blank">亚洲av色香蕉一区二区三区</a>| <a href="http://31xyz.com" target="_blank">亚洲一区精品伊人久久伊人</a>| <a href="http://5shitou.com" target="_blank">色欲国产麻豆一精品一AV一免费 </a>| <a href="http://sxjttxkywl.com" target="_blank">亚洲人成电影网站免费</a>| <a href="http://meiluniao.com" target="_blank">最新亚洲人成网站在线观看 </a>| <a href="http://sdbfgcjx.com" target="_blank">免费人成在线视频</a>| <a href="http://ghiearning.com" target="_blank">羞羞漫画登录页面免费</a>| <a href="http://bisi666.com" target="_blank">亚洲av网址在线观看</a>| <a href="http://2499m.com" target="_blank">女性自慰aⅴ片高清免费</a>| <a href="http://wua72.com" target="_blank">国精产品一区一区三区免费视频 </a>| <a href="http://yamashida.com" target="_blank">亚洲av无码专区首页</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>