Showing posts with label rails. Show all posts
Showing posts with label rails. Show all posts

Thursday, April 4, 2013

Puma and rails to auto start on Linux rc.local

su ubuntu -c 'source /etc/profile && cd /home/ubuntu/downloads/redmine-2.1/ && NEWRELIC_ENABLE=true rails s Puma -e production -p 8080 -d'

Wednesday, December 13, 2006

Ruby on Rails Windows安装问题

Ruby on Rails使用Windows上安装Ruby on Rails的时候,在使用gem安装Rails的时候遇到这样的问题
gem install rails --include-dependencies
错误提示找不到 ssleay32.dll 和 zlib.dll,这时候需要下载下面这几个文件放到 \ruby-version\bin 这个目录下

Friday, December 8, 2006

ruby on rails with Dream Host

Ruby on Rails最近KAKA在DH上搭建了一个Django的测试环境,感觉Python还是很强大,不过似乎做有些小而快速的WEB应用就不那么实在。今天在 Dream Host 上测试 Ruby on Rails,非常成功,安装非常简单,只要在DH的控制面板中把你Domain的FastCGI支持打开就可以了,我使用的是子目录的形式建立Ruby on Rails应用的。

不过在自己的windows上搭建开发环境的时候遇到了一点问题,在启动了服务之后出现
Application error (Rails)
的错误,后来google了一下,原来是服务的启动方式不对,必须使用
ruby script/server
才能正常工作 ;)

关于在windows上搭建 Ruby on Rails 的开发环境完全可以使用这个软件包。

Sunday, December 3, 2006

Installing Ruby on Rails with mod_fcgi for Apache 2

railsAfter a few hours of trial and error using advice from many different sites/posts, this is the process that I found successful in getting Ruby on Rails working with the Apache 2 fcgi module on linux. I hope this helps someone hang onto a few more hair follicles.

Before we begin, I can say that this was only successful when I did the setup in this order. Perhaps others have done it in a different way, but this worked for me. BTW, I using Redhat Enterprise 4.

First, we'll install ruby.
curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.4.tar.gz
tar xvfz ruby-1.8.4.tar.gz
cd ruby-1.8.4
./configure --codefix=/usr/local
make
make install
cd ..

Just to make sure everything installed properly try this:
ruby --version
It should return something like this:
ruby 1.8.4 (2005-12-24) [i686-linux]

Now let's install ruby gems.
curl -O http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz
tar xvfz rubygems-0.8.11.tgz
cd rubygems-0.8.11
ruby setup.rb
cd ..


Now we need to install the FastCGI development kit.
curl -O http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
tar xvfz fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure --codefix=/usr/local
make
make install
cd ..

Allrighty then. We're moving now.