±¾Õ¾Ê×Ò³    ¹ÜÀíÒ³Ãæ    дÐÂÈÕÖ¾    Í˳ö


«July 2025»
ÈÕÒ»¶þÈýËÄÎåÁù
12345
6789101112
13141516171819
20212223242526
2728293031


¹«¸æ
¡¡±¾²©¿ÍÔÚ´ËÉùÃ÷ËùÓÐÎÄÕ¾ùΪתժ£¬Ö»×ö×ÊÁÏÊÕ¼¯Ê¹Óá£

ÎҵķÖÀࣨרÌ⣩

ÈÕÖ¾¸üÐÂ

×îÐÂÆÀÂÛ

ÁôÑÔ°å

Á´½Ó

BlogÐÅÏ¢
blogÃû³Æ:
ÈÕÖ¾×ÜÊý:1304
ÆÀÂÛÊýÁ¿:2242
ÁôÑÔÊýÁ¿:5
·ÃÎÊ´ÎÊý:7573854
½¨Á¢Ê±¼ä:2006Äê5ÔÂ29ÈÕ




[Ruby on Rails]Rails ÃüÁî´óÈ«
Èí¼þ¼¼Êõ

lhwork ·¢±íÓÚ 2007/2/7 14:43:20

Ò».ÌúµÀ1.1 ´´½¨Ò»¸öRailsÓ¦ÓóÌÐò $ rails app_name ¿ÉÑ¡Ïî: -d, database=xxx Ö¸¶¨°²×°Ò»¸öÊý¾Ý¿â(mysql oracle postgresql sqlite2 sqlite3 ), ĬÈÏÇé¿öÏÂÊÇÊý¾Ý¿â -r, ruby-path= Ö¸¶¨RubyµÄ°²×°Â·¾¶,Èç¹ûûÓÐÖ¸¶¨£¬scriptsʹÓÃenvÈ¥ÕÒRuby  -f, freeze (¶³½á)freezes RailsÔÚvendor/railsĿ¼ 1.2 API Documentation $ gem_server Æô¶¯Ò»¸öWEBrick·þÎñÆ÷¡£ÕâʱºòÄã¿ÉÒÔͨ¹ýHttp://localhost:8808/ ´ò¿ªä¯ÀÀÆ÷È¥²é¿´rails APIÎĵµ 1.3 Rake rake db:fixtures:load   # ÔØÈëfixturesµ½µ±Ç°»·¾³µÄÊý¾Ý¿â   # ÔØÈëÖ¸¶¨µÄfixturesʹÓÃFIXTURES=x,y rake db:migrate  # Ç¨ÒÆÊý¾Ý¿âͨ¹ýÔÚdb/migrateĿ¼ÏµĽű¾.¿ÉÒÔÖ¸¶¨°æ±¾ºÅͨ¹ýVERSION=x rake db:schema:dump  # ´´½¨Ò»¸ödb/schema.rbÎļþ£¬Í¨¹ýARÄܹý¹»Ö§³ÖÈκÎÊý¾Ý¿âȥʹÓàrake db:schema:load  # ÔÙÈëÒ»¸öschema.rbÎļþ½øÊý¾Ý¿â rake db:sessions:clear  # Çå¿Õsessions±í rake db:sessions:create  # ÓÃCGI::Session::ActiveRecordStore´´½¨Ò»¸ösessions±íΪÓû§  rake db:structure:dump  # µ¼³öÊý¾Ý¿â½á¹¹ÎªÒ»¸öSQLÎļþ rake db:test:clone  # ÖØÐ´´½¨Ò»¸ö²âÊÔÊý¾Ý¿â´Óµ±Ç°»·¾³Êý¾Ý¿âÖРrake db:test:clone_structure  # ÖØÐ´´½¨²âÊÔÊý¾Ý¿â´Ó¿ª·¢Ä£Ê½Êý¾Ý¿â rake db:test:prepare  # ×¼±¸²âÊÔÊý¾Ý¿â²¢ÔÚÈëschema rake db:test:purge  # Çå¿Õ²âÊÔÊý¾Ý¿â rake doc:app  # ´´½¨HTMLÎļþµÄAPI Documentation rake doc:clobber_app  # ɾ³ýDocumentation rake doc:clobber_plugins  # ɾ³ý plugin Documentation rake doc:clobber_rails  # ɾ³ýDocumentation rake doc:plugins  # ²úÉúDocumationΪËùÓа²×°µÄplugins rake doc:rails  # ´´½¨HTMLÎļþµÄAPI Documentation rake doc:reapp  # Ç¿ÖÆÖØÐ´´½¨HTMLÎļþµÄAPI Documentation rake doc:rerails  # Ç¿ÖÆÖØÐ´´½¨HTMLÎļþµÄAPI Documentation rake log:clear  # Çå¿ÕĿ¼log/ϵÄËùÓÐÈÕÖ¾Îļþ rake rails:freeze:edge  # Lock this application to latest Edge Rails. Lock a specific revision with REVISION=X rake rails:freeze:gems  # Lock this application to the current gems (by unpacking them into vendor/rails) rake rails:unfreeze  # Unlock this application from freeze of gems or edge and return to a fluid use of system gems rake rails:update  # Update both scripts and public/javascripts from Rails rake rails:update:javascripts  # Update your javascripts from your current rails install rake rails:update:scripts  # Add new scripts to the application script/ directory rake stats  # Report code statistics (KLOCs, etc) from the application rake test  # Test all units and functionals rake test:functionals  # Run tests for functionalsdb:test:prepare rake test:integration  # Run tests for integrationdb:test:prepare rake test:plugins  # Run tests for pluginsenvironment rake test:recent  # Run tests for recentdb:test:prepare rake test:uncommitted  # Run tests for uncommitteddb:test:prepare rake test:units  # Run tests for unitsdb:test:prepare rake tmp:cache:clear  # Çå¿Õtmp/cacheĿ¼ÏµÄËùÓÐÎļþ rake tmp:clear  # Çå¿Õsession, cache, ºÍsocketÎļþ´Ótmp/Ŀ¼ rake tmp:create  # Ϊsessions, cache, and sockets´´½¨tmp/Ŀ¼ rake tmp:sessions:clear  # Çå¿ÕËùÓÐÔÚtmp/sessionsĿ¼ÏµÄÎļþ rake tmp:sockets:clear  # Çå¿ÕËùÓÐÔÚtmp/sessions Ŀ¼ÏµÄruby_sess.* Îļþ 1.4 Scripts script/about  # Êä³öµ±Ç°»·¾³ÐÅÏ¢ script/breakpointer  # Æô¶¯¶Ïµãserver script/console  # Æô¶¯½»»»Ê½µÄRails¿ØÖÆÌ¨ script/destroy  # ɾ³ýͨ¹ýgenerators´´½¨µÄÎļþ script/generate  # -> generators script/plugin  # -> Plugins script/runner  # Ö´ÐÐÒ»¸öÈÎÎñÔÚrailsÉÏÏÂÎÄÖРscript/server  # Æô¶¯¿ª·¢Ä£Ê½·þÎñÆ÷http://localhost:3000 //ÒÔϼ¸¸ö²»ÖªµÀÔõôȥʹÓàscript/performance/profiler  script/performance/benchmarker  script/process/reaper script/process/spawner 1.5 Generators ruby script/generate model ModelName ruby script/generate controller ListController show edit ruby script/generate scaffold ModelName ControllerName ruby script/generate migration AddNewTable ruby script/generate plugin PluginName ruby script/generate mailer Notification lost_password signup ruby script/generate web_service ServiceName api_one api_two ruby script/generate integration_test TestName ruby script/generate session_migration ¿ÉÑ¡Ïî: -p, --pretend Run but do not make any changes. -f, --force Overwrite files that already exist. -s, --skip Skip files that already exist. -q, --quiet Suppress normal output. -t, --backtrace Debugging: show backtrace on errors. -h, --help Show this help message. -c, --svn Modify files with subversion. (Note: svn must be in path)  1.6 Plugins script/plugin discover  # discover plugin repositories script/plugin list  # list all available plugins script/plugin install where  # install the a€wherea€? plugin script/plugin install -x where  # install where plugin as SVN external script/plugin install http://invisible.ch/projects/plugins/where script/plugin update  # update installed plugins script/plugin source  # add a source repository script/plugin unsource  # removes a source repository script/plugin sources  # lists source repositories


ÔĶÁÈ«ÎÄ(1695) | »Ø¸´(0) | ±à¼­ | ¾«»ª
 



·¢±íÆÀÂÛ£º
êdzƣº
ÃÜÂ룺
Ö÷Ò³£º
±êÌ⣺
ÑéÖ¤Â룺  (²»Çø·Ö´óСд,Çë×ÐϸÌîд,Êä´íÐèÖØÐ´ÆÀÂÛÄÚÈÝ£¡)



Õ¾µãÊ×Ò³ | ÁªÏµÎÒÃÇ | ²©¿Í×¢²á | ²©¿ÍµÇ½

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.295 second(s), page refreshed 144765560 times.
¡¶È«¹úÈË´ó³£Î¯»á¹ØÓÚά»¤»¥ÁªÍø°²È«µÄ¾ö¶¨¡·  ¡¶¼ÆËã»úÐÅÏ¢ÍøÂç¹ú¼ÊÁªÍø°²È«±£»¤¹ÜÀí°ì·¨¡·
ËÕICP±¸05006046ºÅ