プロジェクト

全般

プロフィール

Vote #78795

未完了

implement an upgrade script

Admin Redmine さんが約4年前に追加.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
-
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
0
version_id:
0
issue_org_id:
26847
author_id:
115380
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

User can do mistake when they upgrade an existing instance, for example overwrite files in public from an older release.

Some ideas

#! /bin/bash

redmine_version='3.4.2'
archive_path='...'
www_path='...'

pushd ${www_path}

tar xzf ${archive_path}/redmine-${redmine_version}.tar.gz
chown -R apache.apache redmine-${redmine_version}

pushd redmine-${redmine_version}
cp ${www_path}/redmine/config/database.yml config/
cp ${www_path}/redmine/config/configuration.yml config/
cp -r ${www_path}/redmine/plugins/* plugins/
# cp -r ${www_path}/redmine/public/... public/
cp -r ${www_path}/redmine/files/* files/

# patch -p0 < ${www_path}/redmine-patch.diff

bundle install --without development test
bundle exec rake generate_secret_token

bundle exec rake db:migrate RAILS_ENV=production
bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production

popd
rm redmine
ln -sf redmine-${redmine_version} redmine

apachectl restart

表示するデータがありません

他の形式にエクスポート: Atom PDF

いいね!0