Groups
Groups
Sign in
Groups
Groups
Ruby on Rails Taiwan
Conversations
About
Send feedback
Help
Rails 的 MVC model
10 views
Skip to first unread message
Joseph
unread,
Aug 24, 2008, 11:40:57 PM
8/24/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails Taiwan
我是"網路程式應用"與"Rails" 的初學者, 已經大約了解MVC 的概念,
不過現在有一個問題在於能否將 [M,Database]和[V,C]分開在不同的兩台主機,
因為我想將前端與後端再做切割
使用Instant Rails 似乎只能在同一台上,
希望能有高手一步一步指導做法
另一個問題, Rails 的 Framework究竟提供了哪些功能阿?? DRY? Scaffold?
Datou
unread,
Aug 24, 2008, 11:53:26 PM
8/24/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails Taiwan
[database] [mvc]
这样分比较容易,要把mvc分开我也不会,貌似也没有太大的价值。
2008/8/25 Joseph
<
wut...@gmail.com
>
--
Datou
2SIMPLE -
http://2simple.cn/
糗事百科 -
http://www.qiushibaike.com/
秘密 -
http://secret.moumentei.com/
Datou
unread,
Aug 25, 2008, 12:07:39 AM
8/25/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails Taiwan
一般来讲:
接入端对request进行load balance
然后
多台机器跑多个rails进程
(mvc里面的类/实例都要共享的,很难分开)
后面挂master/slave多台数据库,提高效率同时做备份
2008/8/25 Datou
<
2si...@gmail.com
>
Joseph
unread,
Aug 25, 2008, 4:43:09 AM
8/25/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails Taiwan
那麼應該要如何將database與mvc放在不同的機器呢? instantrails 建立專案後全部都在同一主機上呀.
希望你能夠教教我,或提供一些教學的網站
On 8月25日, 下午12時07分, Datou <
2sim...@gmail.com
> wrote:
> 一般来讲:
> 接入端对request进行load balance
> 然后多台机器跑多个rails进程(mvc里面的类/实例都要共享的,很难分开)
> 后面挂master/slave多台数据库,提高效率同时做备份
>
> 2008/8/25 Datou <
2sim...@gmail.com
>
>
>
>
>
>
> > [database] [mvc]
> > 这样分比较容易,要把mvc分开我也不会,貌似也没有太大的价值。
>
> > 2008/8/25 Joseph <
wut...@gmail.com
>
>
> > 我是"網路程式應用"與"Rails" 的初學者, 已經大約了解MVC 的概念,
> >> 不過現在有一個問題在於能否將 [M,Database]和[V,C]分開在不同的兩台主機,
> >> 因為我想將前端與後端再做切割
>
> >> 使用Instant Rails 似乎只能在同一台上,
> >> 希望能有高手一步一步指導做法
>
> >> 另一個問題, Rails 的 Framework究竟提供了哪些功能阿?? DRY? Scaffold?
>
> > --
> > Datou
> > 2SIMPLE -
http://2simple.cn/
> > 糗事百科 -
http://www.qiushibaike.com/
> > 秘密 -
http://secret.moumentei.com/
>
> --
> Datou
> 2SIMPLE -
http://2simple.cn/
> 糗事百科 -
http://www.qiushibaike.com/
> 秘密 -
http://secret.moumentei.com/-
隱藏被引用文字 -
>
> - 顯示被引用文字 -
Datou
unread,
Aug 25, 2008, 5:21:48 AM
8/25/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails Taiwan
修改database.yml里面的host,指向到其他IP或者机器名称
2008/8/25 Joseph
<
wut...@gmail.com
>
Reply all
Reply to author
Forward
0 new messages