Lightsail bitnami Redmine에서 Redmine Gantt 플러그인 가져오기

Lightsail의 bitnami Redmine에서 PlanetUML 플러그인 가져오기의 후속.
bitnami의 Redmine을 사용하는 관계상 실행 사용자는 관리자 권한이 있기 때문에 sudo를 사용하고 있습니다. 환경에 따라 다시 읽으십시오.

컨디션


Amazon Lightsail의 Bitnami Edition Redmine
/etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Redmine 정보
Environment:
  Redmine version                4.1.1.stable
  Ruby version                   2.5.8-p224 (2020-03-31) [x86_64-linux]
  Rails version                  5.2.4.2
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp

가져오기 단계


Redmine Gantt 플러그인 가져오기


Redmine Gantt 플러그인은 아래에서부터 가져옵니다.
로그인 이름, 이메일 주소, 전화번호를 입력하면 다운로드 링크가 기재된 메일이 발송된다.나는 우편물을 받기 전에 몇 분을 썼다.
SCP 명령을 사용하여 받은 압축 파일(Easy GantFree.zip)을 서버에 업로드합니다.
$ scp -i [秘密鍵] EasyGanttFree.zip bitnami@[IPアドレス]:~/

플러그인 설치


Redmine 4.1.1을 사용하기 때문에 EasyGantFree-4가 사용됩니다.plugens 디렉토리에 구성된 x.zip에 대한 해답
$ cd ~/
$ unzip EasyGanttFree.zip
$ unzip EasyGanttFree-4.x.zip 
$ mv easy_gantt/ ~/apps/redmine/htdocs/plugins/

플러그인 파일의 사용 권한 수정

$ cd ~/apps/redmine/htdocs/plugins/
$ sudo chown -R bitnami.daemon easy_gantt
$ sudo chmod -R 775 easy_gantt

Redmine에 플러그인 설치


플러그 인을 제대로 설치하려면 다음 오류가 발생할 수 있습니다.
$ sudo bundle exec rake redmine:plugins NAME=easy_gantt RAILS_ENV=production

You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

If this is a development machine, remove the /opt/bitnami/apps/redmine/htdocs/Gemfile freez
e 
by running `bundle install --no-deployment`.

The dependencies in your gemfile changed

You have added to the Gemfile:
* redmine_extensions
오류 메시지의 지시에 따라 "bundle install-no-deployment"를 실행합니다.
mimemagic에서 오류 (*1)가 발생했기 때문에gem을 업데이트하고 다시 bundle install를 업데이트합니다.
*1 참조https://hackmd.io/@mametter/mimemagic-info-ja
$ cd ~/apps/redmine/htdocs/

$ sudo bundle install --no-deployment

Your bundle is locked to mimemagic (0.3.5), but that version could not be found in any of
the sources listed in your Gemfile. If you haven't changed sources, that means the author
of mimemagic (0.3.5) has removed it. You'll need to update your bundle to a version other
than mimemagic (0.3.5) that hasn't been removed in order to install.

$ sudo bundle update mimemagic

$ sudo bundle install --no-deployment
플러그인을 설치합니다.
$ sudo bundle exec rake redmine:plugins NAME=easy_gantt RAILS_ENV=production
== 20170213152215 AddDefaultPrintableTemplate: migrating ======================
== 20170213152215 AddDefaultPrintableTemplate: migrated (0.0000s) =============

== 20170224134615 UpdateRestApiSettings: migrating ============================
== 20170224134615 UpdateRestApiSettings: migrated (0.0183s) ===================

$ sudo bundle exec rake --trace db:migrate RAILS_ENV=production
※エラーが出るかもしれませんが、とりあえず下記のコマンドも実行します。

$ sudo bundle exec rake redmine:plugins:migrate RAILS_ENV=production
redmine 연결을 다시 시작합니다.
$ sudo /opt/bitnami/ctlscript.sh restart
화면 위쪽에 있는'이시 건트'(Easy Gantt)를 클릭하면 다음 화면이 성공적으로 표시됩니다.

좋은 웹페이지 즐겨찾기