个人工具
登录
查看“UbuntuHelp:RubyOnRails”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:RubyOnRails”的源代码
来自Ubuntu中文
←
UbuntuHelp:RubyOnRails
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/RubyOnRails}} {{Languages|UbuntuHelp:RubyOnRails}} === Intro === These instructions are for Ubuntu 8.04 LTS (hardy). We use gems because of what ReinH put best... '' <ReinH> Let gems manage your rails package otherwise gem and apt-get will start fighting like Spock and Captain Kirk in Amock Time. If you haven't seen that episode, trust me: you don't want that. ''; === Installation === <pre><nowiki> sudo apt-get install ruby-full build-essential apache2 apache2-mpm-prefork apache2-prefork-dev </nowiki></pre> ''The link below is to a specific version of rubygems. If you go to http://rubyforge.org/frs/?group_id=126 you'll get a list of all of the versions, most recent on top. '' <pre><nowiki>wget http://rubyforge.org/frs/download.php/34638/rubygems-1.1.0.tgz tar xzvf rubygems-1.1.0.tgz cd rubygems-1.1.0 sudo ruby setup.rb sudo ln -s /usr/bin/gem1.8 /usr/bin/gem sudo gem update --system </nowiki></pre> <pre><nowiki> sudo gem install rails sudo gem install passenger sudo passenger-install-apache2-module </nowiki></pre> Add these lines to /etc/apache2/apache2.conf: <pre><nowiki> LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-1.0.3/ext/apache2/mod_passenger.so RailsSpawnServer /usr/lib/ruby/gems/1.8/gems/passenger-1.0.3/bin/passenger-spawn-server RailsRuby /usr/bin/ruby1.8 </nowiki></pre> Create something like this in /etc/apache2/sites-available/ror.myhost.com <pre><nowiki> <VirtualHost *> ServerName ror.myhost.com DocumentRoot /home/myuser/www/mynewapp/public </VirtualHost> </nowiki></pre> <pre><nowiki> sudo a2enmod rewrite sudo a2ensite ror.myhost.com sudo /etc/init.d/apache2 restart </nowiki></pre> maybe also do.. <pre><nowiki> rails mynewapp </nowiki></pre> [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:RubyOnRails
。