在 Redmine 上使用 sqlite

1. 安装 sqlite-3

1
2
yum list sqlite
sqlite.i686                                             3.6.20-1.el6_7.2
  • 或者,从源码编译安装
1
2
3
4
5
6
wget ftp://ftp.42.org/pub/FreeBSD/distfiles/sqlite-3.3.7.tar.gz

cd sqlite-3.3.7
./configure --prefix=/home/redmine/SQLITE
make
make install

2. redmine配置

  • database.yml
1
2
3
4
production:
  adapter: sqlite3
  database: db/redmine.sqlite3
  encoding: utf8

3. bundle 执行更新

1
2
3
4
bundle install --without development test
bundle exec rake generate_secret_token
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production bundle exec rake redmine:load_default_data

猜你喜欢

转载自blog.csdn.net/weixin_42463677/article/details/81231553