Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
[Rails 开发入门课程] 第一节 Rails 运行环境
Search
David Zhang
December 11, 2012
Programming
470
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
910
[Rails 开发入门课程] 第五节 Controllers & Views
daqing
0
130
[Rails 开发入门课程] 第四节 Routes
daqing
0
260
[Rails 开发入门课程] 第三节 ActiveRecord Association
daqing
2
290
[Rails 开发入门课程] 第二节 Model
daqing
4
530
Other Decks in Programming
See All in Programming
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
320
テストを司るデーモンに会いに行く 〜隔離した仮想マシンでテストを通すまで〜
h1d3mun3
1
590
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
460
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
160
スマート反転とウェブアクセシビリティ
camiha
0
220
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
0
1.9k
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
550
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
350
更なる可用性を求めて、5年間運用したKotlinのアプリケーションをGoでリプレイスする話
ken_tunc
0
390
iOSDC Japan 2026 - Swiftで作って学ぼう!データベース自作入門
kaseken
2
380
速く作れる。その次は、速く確かめられる開発へ 〜AIネイティブ開発を支える、Shift Down〜 / Can build fast. Next, moving to development where we can verify fast.
rkaga
7
5k
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
1
140
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.3k
Speed Design
sergeychernyshev
33
2.1k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
700
Building an army of robots
kneath
307
46k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
290
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
3
4.3k
Optimizing for Happiness
mojombo
378
71k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
340
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Ethics towards AI in product and experience design
skipperchong
2
390
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
240
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⽇日星期三