$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
[Rails 开发入门课程] 第一节 Rails 运行环境
Search
David Zhang
December 11, 2012
Programming
7
430
[Rails 开发入门课程] 第一节 Rails 运行环境
Rails 开发入门课程的第一节,主要介绍 Rails 运行环境。
介绍 Rails 处理 Web 请求的基本流程,以及部署 Rails 的基本步骤。
David Zhang
December 11, 2012
Tweet
Share
More Decks by David Zhang
See All by David Zhang
Implement Heap Sort in Erlang
daqing
0
880
[Rails 开发入门课程] 第五节 Controllers & Views
daqing
0
110
[Rails 开发入门课程] 第四节 Routes
daqing
0
210
[Rails 开发入门课程] 第三节 ActiveRecord Association
daqing
2
250
[Rails 开发入门课程] 第二节 Model
daqing
4
480
Other Decks in Programming
See All in Programming
Graviton と Nitro と私
maroon1st
0
130
Tinkerbellから学ぶ、Podで DHCPをリッスンする手法
tomokon
0
140
Claude Codeの「Compacting Conversation」を体感50%減! CLAUDE.md + 8 Skills で挑むコンテキスト管理術
kmurahama
1
630
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
0
270
Giselleで作るAI QAアシスタント 〜 Pull Requestレビューに継続的QAを
codenote
0
290
AI時代を生き抜く 新卒エンジニアの生きる道
coconala_engineer
1
420
Developing static sites with Ruby
okuramasafumi
0
320
The Art of Re-Architecture - Droidcon India 2025
siddroid
0
120
AIコーディングエージェント(NotebookLM)
kondai24
0
230
Python札幌 LT資料
t3tra
6
1k
ゆくKotlin くるRust
exoego
1
160
AIエージェントの設計で注意するべきポイント6選
har1101
5
2.3k
Featured
See All Featured
Mind Mapping
helmedeiros
PRO
0
39
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
120
Being A Developer After 40
akosma
91
590k
Crafting Experiences
bethany
0
22
エンジニアに許された特別な時間の終わり
watany
105
220k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
0
300
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
170
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Odyssey Design
rkendrick25
PRO
0
430
Transcript
RAILS 开发⼊入⻔门课程 Introduction to Web development with Rails @daqing 12年12月12⽇日星期三
RAILS 开发⼊入⻔门课程 RAILS 运⾏行环境 Model Routes 第⼀一节 第⼆二节 第三节 第四节
Controllers & Views 第五节 ActiveRecord Association 第六节 Form API 12年12月12⽇日星期三
⺫⽬目标 理解 Rails 中的核⼼心概念 了解 Rails 项⺫⽬目的基本开发过程 可以开发简单的 Rails 应⽤用
12年12月12⽇日星期三
第⼀一节 RAILS 运⾏行环境 RAILS 开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境 12年12月12⽇日星期三
WEB 简介 浏览器 ⺴⽹网站 RAILS 开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境 12年12月12⽇日星期三
WEB 简介 浏览器 ⺴⽹网站 RAILS 开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境 HTTP
12年12月12⽇日星期三
WEB 简介 浏览器 ⺴⽹网站 HTML RAILS 开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境
HTTP 12年12月12⽇日星期三
<!DOCTYPE html> <html> </html> <head> </head> <body> </body> <title> Welcome
<p>Hello, world! </p> </title> WEB 简介 RAILS 开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境 浏览器 ⺴⽹网站 HTML HTTP 12年12月12⽇日星期三
WEB 简介 RAILS 开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境 浏览器 ⺴⽹网站 HTML
HTTP 12年12月12⽇日星期三
什么是 WEB 开发? 12年12月12⽇日星期三
什么是 WEB 开发? 利⽤用编程语⾔言动态⽣生成 HTML ⽂文档 12年12月12⽇日星期三
什么是 WEB 开发? 利⽤用编程语⾔言动态⽣生成 HTML ⽂文档 Ruby 12年12月12⽇日星期三
什么是 WEB 开发? 利⽤用编程语⾔言动态⽣生成 HTML ⽂文档 Ruby on 12年12月12⽇日星期三
什么是 WEB 开发? 利⽤用编程语⾔言动态⽣生成 HTML ⽂文档 Ruby Rails on 12年12月12⽇日星期三
浏览器 Web Server App Server DB Rails HTTP 请求处理流程 RAILS
开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境 API 12年12月12⽇日星期三
如何部署 RAILS 项⺫⽬目? 12年12月12⽇日星期三
浏览器 Web Server App Server DB Rails RAILS 开发⼊入⻔门课程 第⼀一节
RAILS 运⾏行环境 API 如何部署 RAILS 项⺫⽬目? 12年12月12⽇日星期三
浏览器 Web Server App Server DB Nginx Apache Lighttpd Rails
RAILS 开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境 API 如何部署 RAILS 项⺫⽬目? 12年12月12⽇日星期三
浏览器 Web Server App Server DB Nginx Apache Lighttpd Unicorn
Thin Puma Rails RAILS 开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境 API 如何部署 RAILS 项⺫⽬目? 12年12月12⽇日星期三
浏览器 Web Server App Server DB Nginx Apache Lighttpd Unicorn
Thin Puma Rails RAILS 开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境 MySQL Redis MongoDB API 如何部署 RAILS 项⺫⽬目? 12年12月12⽇日星期三
THE RAILS STACK RAILS 开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境 MySQL Ubuntu
Ruby Unicorn M y s q l 2 Rails Devise Haml RMagick 1 3 4 5 6 N g i n x 2 12年12月12⽇日星期三
RAILS 开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境 MySQL Ubuntu Ruby Unicorn M
y s q l 2 Rails Devise Haml RMagick 1 3 4 5 6 N g i n x 2 THE RAILS STACK 12年12月12⽇日星期三
RAILS 开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境 MySQL Ubuntu Ruby Unicorn M
y s q l 2 Rails Devise Haml RMagick 1 3 4 5 6 N g i n x 2 THE RAILS STACK 12年12月12⽇日星期三
RAILS 开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境 安装数据库 选择⾃自⼰己最熟悉的操作系统 安装 Ruby 安装
App Server 1 3 4 5 安装 Web Server 2 第⼀一步 配置运⾏行环境 如何部署 RAILS 项⺫⽬目? Ubuntu / CentOS / Gentoo sudo apt-get install nginx rvm install 1.9.3 gem install unicorn sudo apt-get install mysql-server-5.5 12年12月12⽇日星期三
RAILS 开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境 下载源代码 加载数据库结构 precompile assets 1
3 4 使⽤用 bundler 安装 Gem 2 第⼆二步 安装源代码 如何部署 RAILS 项⺫⽬目? git clone git://github.com/daqing/rabel.git bundle install rake db:setup rake assets:precompile 12年12月12⽇日星期三
RVM Ruby Version Manager 12年12月12⽇日星期三
RVM Ruby Version Manager 12年12月12⽇日星期三
RVM Ruby Version Manager 12年12月12⽇日星期三
RVM Ruby Version Manager 12年12月12⽇日星期三
RVM Ruby Version Manager 12年12月12⽇日星期三
RVM Ruby Version Manager 12年12月12⽇日星期三
什么是 GEM ? A gem is a packaged Ruby application
or library 打包好的 Ruby 共享代码库 12年12月12⽇日星期三
RUBYGEMS.ORG 集中式的 Gem 托管服务 $ gem sources $ gem search
-r rails $ gem install rails *** CURRENT SOURCES *** http://rubygems.org/ 12年12月12⽇日星期三
Rubygems 镜像 - 淘宝⺴⽹网 http://ruby.taobao.org 12年12月12⽇日星期三
QUESTIONS ? 12年12月12⽇日星期三
谢谢 RAILS 开发⼊入⻔门课程 第⼀一节 RAILS 运⾏行环境 (完) http://rabelapp.com https://github.com/daqing http://ruby-china.org/daqing
12年12月12⽇日星期三