redmine 2.2.2 + git ubuntu下安装

下载redmine:
svn co http://svn.redmine.org/redmine/branches/2.2-stable redmine-2.2
安装前提软件:

sudo apt-get install libpq-dev
sudo apt-get install imagemagick
sudo apt-get install libmagickwand-dev
sudo apt-get install gcc g++ build-essential libssl-dev libreadline-dev zlib1g-dev linux-headers-generic libyaml-dev
sudo apt-get install libsqlite3-dev
export RUBYOPT="-KU -E utf-8:utf-8"

安装:
安装ruby:
sudo apt-get install curl
sudo apt-get install git-core
sudo apt-get install libssl-dev(否则gem不能使用)
sudo apt-get install libxslt-dev libxml2-dev (不装bundle install会出错)
sudo apt-get install libmysql-ruby libmysqlclient-dev(用于mysql)
sudo apt-get install libsqlite3-dev(用于sqlite)
sudo apt-get install zlib1g-dev(否则不能创建工程)
sudo apt-get install nodejs(一定要不然会报ExecJS::RuntimeError in Welcome#index错误)
sudo apt-get install g++ (安装thin,eventmachine之类的时候会用到)
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
source /home/larry/.rvm/scripts/rvm
ruby:
rvm install ruby 1.9.2 or rvm install jruby-1.7.0.preview1
rvm --default use 1.9.2 or rvm --default use jruby
ruby -v
rails:
gem -v
gem update --system
gem update
安装bunder
gem install bundler
bundle install --without development test
配置mysql
create database redmine character set utf8;
create user 'redmine'@'localhost' identified by 'my_password';
grant all privileges on redmine.* to 'redmine'@'localhost';
grant all privileges on redmine.* to 'redmine'@'localhost' identified by 'my_password';

复制 config/database.yml.example to config/database.yml
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password: my_password

rake generate_secret_token
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data
mkdir tmp tmp/pdf public/plugin_assets
sudo chown -R redmine:redmine files log tmp public/plugin_assets
sudo chmod -R 755 files log tmp public/plugin_assets
ruby script/rails server webrick -e production
查看
http://localhost:3000/.

git使用

“配置”页面,点击“版本库”标签,SCM的下拉菜单中选择Git,Path to repository输入框中输入Git库的*本地绝对路径*。然后点击保存即可

你可能感兴趣的:(redmine 2.2.2 + git ubuntu下安装)