web server:
install ubuntu 64bit server edition
then:
################################
1.install necessary software:
################################
sudo apt-get install gcc g++ make
sudo apt-get install mysql-client-5.0
sudo apt-get install ruby ruby1.8-dev rdoc ri
sudo apt-get install libmysqlclient15-dev
sudo apt-get install subversion
sudo apt-get install memcached
sudo apt-get install rcconf [optional]
sudo apt-get install openssl libopenssl-ruby
sudo apt-get install iftop
################################
2.install necessary gems:
################################
get latest gem from rubyforge:
wget http://rubyforge.org/frs/download.php/56227/rubygems-1.3.3.tgz
tar zxf rubygems-1.3.3.tgz
cd rubygems-1.3.3
ruby setup.rb
sudo gem install mysql
sudo gem install mongrel mongrel_cluster
sudo gem sources -a http://gems.github.com/
sudo gem install starling-starling
sudo mkdir /var/spool/starling
cp attached file starling as /etc/init.d and chmod+x
################################
3.checkout code and config
################################
sudo vim /etc/profile
add line:
export RAILS_ENV="production"
export RAILS_ROOT = "/var/www/xxx/"
checkout code into /var/www/
use rcconf to config the run level of starling
config/database.yml config/workling.yml etc.
mongrel_rails cluster::configure -e production -d -p 8000 -N 10 -c /var/www/xxx
sudo cp /usr/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/resources/mongrel_cluster /etc/init.d/
sudo chmod +x /etc/init.d/mongrel_cluster
sudo /usr/sbin/update-rc.d -f mongrel_cluster defaults
or use rcconf
or use god to monitor the mongrel proecesses:
sudo gem install god
see attached file: god.zip
分享到:
相关推荐
Ruby on Rails Web开发学习实录 内容简介: 在目前的主流web开发技术中,基于ruby语言的rails框架是做网站开发速度最快的工具。它可以达到j2ee框架开发速度的5~10倍,并且代码量也非常少。另外由于代码量的大幅度...
jRuby On Rails WEB 2.0
Build your own ruby on rails web application
Ruby on Rails Web开发学习实录.pdf
《Ruby on rails web开发学习实录》的光盘文件
《JRuby on Rails Web 2.0 实用项目》 英文PDF + 源码
使用Aptana+Rails开发Rails Web应用 有Aptana的安装配置等等,中文
Ruby on Rails Web开发学习实录随书光盘(源代码),清华大学出版社 ,随书源代码全套
Ruby on Rails Guides_ A Guide to Testing Rails Applications.pdf
《Ruby on Rails Web开发学习实录》 第(2/2)分卷 PDF电子书 高清扫描版
Ansible-rails-deploy.zip,Ansible脚本,用于设置完全加载的Ruby/Rails Web服务器Rails部署,ansible是一个简单而强大的自动化引擎。它用于帮助配置管理、应用程序部署和任务自动化。
Ruby on rails web 完整版祝红涛,于利敏,武迪编著
introduction for rails 4 development, it is very good document.
ruby on rails web ruby on rails web ruby on rails web ruby on rails web ruby on rails web
Ruby on Rails Guides_ A Guide to Active Record Associations.pdf
Ruby.onRuby.on.Rails.Web开发之旅
JRuby on Rails Web 2.0 Projects
Web开发敏捷之道-应用Rails进行敏捷Web开发 Web开发敏捷之道-应用Rails进行敏捷Web开发-2版 Web开发敏捷之道-应用Rails进行敏捷Web开发-3版