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
450
7
Share
[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
890
[Rails 开发入门课程] 第五节 Controllers & Views
daqing
0
120
[Rails 开发入门课程] 第四节 Routes
daqing
0
220
[Rails 开发入门课程] 第三节 ActiveRecord Association
daqing
2
260
[Rails 开发入门课程] 第二节 Model
daqing
4
490
Other Decks in Programming
See All in Programming
How We Benchmarked Quarkus: Patterns and anti-patterns
hollycummins
1
180
第3木曜LT会 #28
tinykitten
PRO
0
120
ついに来た!本格的なマルチクラウド時代の Google Cloud
maroon1st
0
370
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
2
420
SREに優しいTerraform構成 modulesとstateの組み方
hiyanger
2
170
when storing skills in S3 file
watany
3
1k
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
2.7k
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
3
980
Claude Codeをカスタムして自分だけのClaude Codeを作ろう
terisuke
0
160
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.8k
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
2
1.5k
Making the RBS Parser Faster
soutaro
0
660
Featured
See All Featured
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
350
Making the Leap to Tech Lead
cromwellryan
135
9.8k
Test your architecture with Archunit
thirion
1
2.2k
Documentation Writing (for coders)
carmenintech
77
5.3k
A Soul's Torment
seathinner
6
2.8k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
200
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.3k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
120
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
410
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
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⽇日星期三