sudo apt-get install libopenssl-ruby1.8 spawn-fcgi
sudo apt-get install gem
sudo gem install mysql rails
cd ~/
mkdir apps
cd apps
wget http://rubyforge.org/frs/download.php/63583/redmine-0.8.5.tar.gz
tar zxf redmine-0.8.5.tar.gz
cd redmine-0.8.5
cd config
cp database.yml.example database.yml
vim database.yml
rake db:migrate RAILS_ENV="production"
....
cd ../public
cp dispatch.fcgi.example dispatch.fcgi
vim Makefile
start: dispatch.fcgi
spawn-fcgi -d `pwd` -f `pwd`/dispatch.fcgi -s
`pwd`/redmine.socket -P re dmine.pid && chmod a+w redmine.socket
stop: redmine.pid
kill `cat $<`; rm -rf $<
vim /etc/nginx/xxx
fastcgi_pass "unix:/path/to/redmine-0.8.5/public/redmine.socket";
make start
sudo nginx -s reload
OOK
;)
仅记录为自己所用,
如果疑问,
欢迎讨论。
:)
No comments:
Post a Comment