跳至主要内容

redmine installation guide

 1.  Prepare all the applications.

     1) ruby. highly recommend use 1.8.6-1.8.7 http://www.ruby-lang.org/en/downloads/
           ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]
         mysql 5.1.45


     2) install all required gem/ gem install *.gem
          rubygem 
      actionmailer (2.3.11)
      actionpack (2.3.11)
      activerecord (2.3.11)
      activeresource (2.3.11)
      activesupport (2.3.11)
      i18n (0.4.2)
      mysql (2.8.1)
      rack (1.1.0, 1.0.1)
      rails (2.3.11)
      rake (0.8.7)
      rubygems-update (1.4.2)
       
  • Ruby 1.9 is not supported yet. You have to use Ruby 1.8.x as stated above.
  • RubyGems 1.3.1 or higher is required (Rails 2.3.5 will fail with RubyGems 1.5.0 and later, stick to previous versions of RubyGems)
  • Rake 0.8.3 or higher is required
  • Rack 1.0.1 is required. If you don't have this exact version, database migration would fail.
  • I18n 0.4.2 is required for Redmine >= 1.0.5

     3) download redmine http://www.redmine.org/projects/redmine/wiki/Download and unpack it.
     4) Create an empty database and accompanying user named redmine for example.

For MySQL:

 create database redmine character set utf8; create user 'redmine'@'localhost' identified by 'my_password'; grant all privileges on redmine.* to 'redmine'@'localhost'; 

For versions of MySQL prior to 5.0.2 - skip the 'create user' step and instead:

 grant all privileges on redmine.* to 'redmine'@'localhost' identified by 'my_password'; 

For PostgreSQL:

 CREATE ROLE redmine LOGIN ENCRYPTED PASSWORD 'my_password' NOINHERIT VALID UNTIL 'infinity'; CREATE DATABASE redmine WITH ENCODING='UTF8' OWNER=redmine; 

3. Copy config/database.yml.example to config/database.yml and edit this file in order to configure your database settings for "production" environment.

Example for a MySQL database:

 production:   adapter: mysql   database: redmine   host: localhost   username: redmine   password: my_password 

If your server is not running on the standard port (3306), use this configuration instead:

 production:   adapter: mysql   database: redmine   host: localhost   port: 3307   username: redmine   password: my_password 

Example for a PostgreSQL database (default port):

 production:   adapter: postgresql   database: <your_database_name>   host: <postgres_host>   username: <postgres_user>   password: <postgres_user_password>   encoding: utf8   schema_search_path: <database_schema> (default - public)
    5) run " rake generate_session_store"
6) under redmine path;
vi ./config/boot.rb
add "require 'thread'" in the first line
7) run "RAILS_ENV=production rake db:migrate"
but it will have problems, although they said the issue been fixed in gem2.3.11.
The workaround :
vi vendor/rails/railties/lib/rails/gem_dependency.rb
add
if Gem::VERSION >= "1.3.6"
module Rails
class GemDependency
def requirement
r = super
(r == Gem::Requirement.default) ? nil : r
end
end
end
end
in the last line. and export LD_LIBRARY_PATH=/opt/ruby/lib:/lib/ 

then the command is running successfully.

8) the tricky thing is, my mysql didn't use the local one, but redmine will search for default I don't how to modify this, just add the soft link with my own mysql's socket. then continue.
9) then run RAILS_ENV=production rake redmine:load_default_data
10)Setting up permissions

Assuming you run Redmine with a redmine user:

 mkdir tmp public/plugin_assets sudo chown -R redmine:redmine files log tmp public/plugin_assets sudo chmod -R 755 files log tmp public/plugin_assets
11) use admin/admin to login
--
Alex Tu
-----------------------------------------------------------
ShangHai,China

评论

此博客中的热门博文

Python学习笔记20100117

映射list   Dictionary 是用{}. list 是一那个[]. turple是用() 当你定义过dictionary后,你可以使用d.keys(), d.values(),d.items()将定义后的时候分别显示出来 当然可以将list里的值加减乘除,也可以如一般的定义直接重新复制这个list. 链接与分割字符串的 li=";", join(li) 则显示的就是 分隔符为;的数 如果使用li=li.split(";")则将刚刚;的分隔符删除,而split里也可定义域,如li.split(";",1)   自省 <---这是啥 之前在使用的时候发觉有些书本上的模块不能调用,很多是py脚本定义过的函数。 下载该脚本s,然后上传至指定位置。 >>>import sys >>>sys.path >>>sys.path.append("绝对位置")然后就能调用这些脚本和参数了。 删除 >>>sys.path.pop() 定义一个参数是 def info(test, test1=10.test2=12): info是函数名,test是必备参数,因为没有定义值,test1和test2是可选参数,定义了初始值   以上是外部函数的调用,下面转到内部函数 内部函数有type,str,dir及其他   ---type 返回任意字符的类型,模块也可以。types模块 >>> type(1) <type 'int'> >>> li=[] >>> type(li) <type 'list'> >>> import odbchelper >>> type(odbchelper) <type 'module'> >>> type(sys) <type 'module'> >>> import types ...

投名状

昨天晚上实在无聊,就屁颠屁颠的去看了《投名状》,本来去奥斯卡的,发觉已经只有9点以后的场次,还特别的翘,我说那九点看了直接去看《集结号》首映算了,别人不愿意,那行,然后出来瞎晃悠,还好几个周围的电影院还近,去了胜利,人那还没上片,看来没希望,突然想去唱歌,行,反正金歌也进,就那么走过去吧,突然眼前豁然开朗,这不是西湖电影院么,一阵小跑,发觉上片,最近的场次还只有头牌了,虽然头牌脖子有点罩不住,但是至少看看片子还可以的。 网上大概了解了下《投名状》,陈可辛翻拍的《刺马》,加上了几个现代的演员。故事的大概是:姜午阳、赵二虎本为草莽,在一次争斗中与庞青云结识。三人惺惺相惜,结为异姓兄弟。不料日就生变,赵二虎的妻子莲生爱上了大哥庞青云,庞青云也对莲生心生爱慕。不久后,庞青云升为两江总督,欲望逐渐膨胀,变得心狠手辣。他的道德防线也逐渐崩溃,霸占莲生,还要对兄弟下手…… 剧情也就那么个回事情,其实故事梗概不然,一个从死人堆里爬出来的人,什么都失去过了 。已经改变了他的原有个性,他已经从开始就知道什么是他要的,而唯一觉得真是的就是老徐那一次,其实古时候也挺简单的,说得好就上了。只是一种人性做本质的释放。受苦挨饿无非就是为了有着一日飞黄腾达,为了生活隐姓埋名,别人都在抢军粮的时候什么都不做,唯一的只是在金城武快要被杀掉的时候救助,然后直接取了押送大将的首级。擒贼先擒王。。。。 而刘德华的出场也特别犀利,从他的眼神看出他已经被锻炼的很老练,已经是一个大将之才,错的地方就是信错了人,在后面苏州一役的时候,从为了一个被困一年的军队,只身一人去刺城主。被困一年无论对于城内还是城外都是极大的考验,心里防线都已经到了崩溃的边缘。而城主以他的解脱来换大众的解脱,这是很等的伟大,而战争是残酷的,不能收编的俘虏虽然答应了别人,可没有粮食来养活那么多人。敌军的气节也让人唏嘘不已。 刘德华的演绎的性格有情有义,到最后死也不认为是李连杰派人杀的他。李连杰演绎的则是在战场上全军覆没后,心里从此极大改变,为了目的不择手段,从始至终就是在利用刘和金,但也为曾经的战场情了矛盾,权还是义一直是在他的心理纠结着,当苏州一役,李看到刘走出城那种又喜又悲的感情时,看出了他心理是多的纠结。金城武么,唉,演技确实很好,但是角色赋予的他是个傻蛋的角色,只为了情谊,一心想挽回情谊,而在战场上也为了情谊能甘当敢死队,同时也为了情谊...