しばらく更新をしていませんでしたが、久々にプラグインの検証として
redmine_banner pluginを導入してみました。
redmineの利用者にメッセージを通知する方法として、
bannnerプラグインは有効ですね。
非常にシンプル(素直)なプラグインなので、問題無く導入完了です。
これで出来上がりです。
redmine_banner pluginを導入してみました。
redmineの利用者にメッセージを通知する方法として、
bannnerプラグインは有効ですね。
非常にシンプル(素直)なプラグインなので、問題無く導入完了です。
[root@ac214042296a plugins]# yum install -y -q wgetwget https://github.com/akiko-pusu/redmine_banner/archive/master.zip --2018-11-25 10:13:56-- https://github.com/akiko-pusu/redmine_banner/archive/master.zip Resolving github.com (github.com)... 192.30.255.112, 192.30.255.113 Connecting to github.com (github.com)|192.30.255.112|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/akiko-pusu/redmine_banner/zip/master [following] --2018-11-25 10:13:57-- https://codeload.github.com/akiko-pusu/redmine_banner/zip/master Resolving codeload.github.com (codeload.github.com)... 192.30.255.121, 192.30.255.120 Connecting to codeload.github.com (codeload.github.com)|192.30.255.121|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/zip] Saving to: 'master.zip' 2018-11-25 10:13:57 (206 KB/s) - 'master.zip' saved [44291] [root@ac214042296a plugins]# unzip master.zip Archive: master.zip 5ae224156f188e9eb8fd9d84baeb3ff504541095 creating: redmine_banner-master/ inflating: redmine_banner-master/LICENSE.txt inflating: redmine_banner-master/README.md inflating: redmine_banner-master/Rakefile ・・・ inflating: redmine_banner-master/lib/tasks/test.rake [root@ac214042296a plugins]# mv redmine_banner-master/ redmine_banner-master/ [root@ac214042296a plugins]# export PATH=$PATH:/opt/redmine/ruby/bin [root@ac214042296a plugins]# export ENV=P production RAILS_ [root@ac214042296a plugins]# bundle install --no-deployment --without development test postgresql sqlite Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Your Gemfile lists the gem redmine_crm (>= 0) more than once. You should probably keep only one of them. While it's not a problem now, it could cause errors if you change the version of one of them later. Fetching gem metadata from http://rubygems.org/............ Fetching gem metadata from https://rubygems.org/.......... Fetching version metadata from http://rubygems.org/... Fetching version metadata from https://rubygems.org/.. Fetching dependency metadata from http://rubygems.org/.. Fetching dependency metadata from https://rubygems.org/. Using rake 12.3.1 Using i18n 0.7.0 ・・・ Using rails 4.2.8 Using redmine_crm 0.0.37 Using redmine_extensions 0.2.12 Bundle complete! 51 Gemfile dependencies, 74 gems now installed. Gems in the groups development, test, postgresql and sqlite were not installed. Use `bundle show [gemname]` to see where a bundled gem is installed. [root@ac214042296a plugins]# bundle exec rake --trace redmine:plugins:migrate (in /opt/redmine/apps/redmine/htdocs) ** Invoke redmine:plugins:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute redmine:plugins:migrate Migrating advanced_roadmap_v2 (Advanced roadmap & milestones plugin)... Migrating clipboard_image_paste (Clipboard image paste)... Migrating easy_gantt (Easy Gantt plugin)... Migrating recurring_tasks (Recurring Tasks (Issues))... Migrating redmine_absolute_dates (Redmine Absolute Dates plugin)... Migrating redmine_agile (Redmine Agile plugin (Light version))... Migrating redmine_banner (Redmine Banner plugin)... == 1 CreateBanners: migrating ================================================= -- create_table(:banners) -> 0.2915s == 1 CreateBanners: migrated (0.2917s) ======================================== == 2 RenameColumnType: migrating ============================================== -- rename_column(:banners, :type, :style) -> 0.0161s == 2 RenameColumnType: migrated (0.0163s) ===================================== == 3 AddDisplayPartToBanners: migrating ======================================= -- add_column(:banners, :display_part, :string, {:default=>"all", :null=>false}) -> 0.0433s == 3 AddDisplayPartToBanners: migrated (0.0435s) ============================== == 4 ChangeColumnStyle: migrating ============================================= -- change_column(:banners, :style, :string, {:default=>"info", :null=>false}) -> 0.0908s == 4 ChangeColumnStyle: migrated (0.0910s) ==================================== == 5 ChangeColumnBannerDescription: migrating ================================= -- change_column(:banners, :banner_description, :text) -> 0.0638s == 5 ChangeColumnBannerDescription: migrated (0.0641s) ======================== Migrating redmine_charts2 (Redmine Charts)... Migrating redmine_checklists (Redmine Checklists plugin (Light version))... Migrating redmine_close_button (Redmine Close Issue Button Plugin)... Migrating redmine_code_review (Redmine Code Review plugin)... Migrating redmine_contacts (Redmine CRM plugin (Light version))... Migrating redmine_enter_cancel (Redmine Enter Cancel plugin)... Migrating redmine_extended_reminder (Redmine Extended Reminder plugin)... Migrating redmine_github_hook (Redmine Github Hook plugin)... Migrating redmine_helpdesk (Redmine helpdesk plugin)... Migrating redmine_importer (Issue Importer)... Migrating redmine_issue_extensions (Redmine Issue Extensions plugin)... Migrating redmine_issue_templates (Redmine Issue Templates plugin)... Migrating redmine_issues_summary_graph (Redmine Issues Summary Graph plugin)... Migrating redmine_knowledgebase (Knowledgebase)... Migrating redmine_logs (Redmine Logs plugin)... Migrating redmine_monitoring_controlling (Redmine (Monitoring & Controlling | Monitoramento & Controle))... Migrating redmine_serial_number_field (Redmine Serial Number Field)... Migrating redmine_slack (Redmine Slack)... Migrating redmine_tagging (Redmine Tagging Plugin)... Migrating redmine_wiki_lists (Redmine Wiki Lists plugin)... Migrating redmine_xlsx_format_issue_exporter (Redmine XLSX format issue exporter)... Migrating sidebar_hide (Sidebar Hide Plugin)... ** Invoke db:schema:dump (first_time) ** Invoke environment ** Invoke db:load_config (first_time) ** Execute db:load_config ** Execute db:schema:dump [root@ac214042296a plugins]# systemctl restart redmine
これで出来上がりです。