Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
[Rails 开发入门课程] 第一节 Rails 运行环境
Search
David Zhang
December 11, 2012
Programming
460
7
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
[Rails 开发入门课程] 第一节 Rails 运行环境
Rails 开发入门课程的第一节,主要介绍 Rails 运行环境。
介绍 Rails 处理 Web 请求的基本流程,以及部署 Rails 的基本步骤。
David Zhang
December 11, 2012
More Decks by David Zhang
See All by David Zhang
Implement Heap Sort in Erlang
daqing
0
900
[Rails 开发入门课程] 第五节 Controllers & Views
daqing
0
130
[Rails 开发入门课程] 第四节 Routes
daqing
0
250
[Rails 开发入门课程] 第三节 ActiveRecord Association
daqing
2
280
[Rails 开发入门课程] 第二节 Model
daqing
4
520
Other Decks in Programming
See All in Programming
[DroidKaigi 2026] Bring your own phones to Gradle Managed Devices
f2lk
0
100
Hono + Inertia + React で LP を構築した話
oukayuka
2
210
Swift愛好会100回記念 第1回を振り返る
jollyjoester
0
120
レビュー履歴をAIに食わせて、 Compose移行を加速するs
shihochan
0
260
Flow は今どうなっているか
mizdra
PRO
0
910
What We Talk About When We Talk About XP
m_seki
2
350
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
3
460
AIは賢い。でも実行環境は? CLIおじさんがAI時代に伝えたいこと ~ CLIおじさんがAI時代に伝えたいこと ~
curekoshimizu
1
140
Oxlintはいいぞ(続)
yug1224
1
540
ALB ログから Trace を気合で繋げる技術
fohte
7
860
Press start. Python's next generation.
willingc
PRO
3
300
週末にAI-DLCを本気で回したら$1,600溶けた
hbashimizu
0
120
Featured
See All Featured
Marketing to machines
jonoalderson
1
5.7k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
440
Prompt Engineering for Job Search
mfonobong
0
440
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
470
Leo the Paperboy
mayatellez
8
2.2k
How to train your dragon (web standard)
notwaldorf
97
6.8k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
67
58k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
Odyssey Design
rkendrick25
PRO
2
800
What's in a price? How to price your products and services
michaelherold
247
13k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
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⽇日星期三