본문 바로가기

프로젝트/Redmine

Redmine plugin 개발하기 #1

Redmine Plugin 개발은 홈페이지 Tutorial을 참조

: Plugin Tutorial


  1. 1단계 (Generate plugin)
    1. use_redmine.bat 실행: \Bitnami\redmine-3.2.0-1>use_redmine
    2. 새로뜬 창에 다음을 입력
      1. \Bitnami\redmine-3.2.0-1\apps\redmine\htdocs>bundle exec ruby bin/rails generate redmine_plugin <plugin-name>
      2. bin/rails 는 Redmine 3.X 임으로. 즉 버전마드 다름으로 주의: 위의 Tutorial Page 참조
    3. plugin information 수정
      1. Bitnami\redmine-3.2.0-1\apps\redmine\htdocs\plugins\joins_project_list\init.rb
      2. name, author, description and version 정보 수정

      Redmine::Plugin.register :joins_project_list do

        name 'Plugin_Name'

        author 'mino'

        description 'desc....'

        version '0.0.1'

        url 'http://example.com/path/to/plugin'

        author_url 'http://mino43.tistory.com/'

      end

  2. 확인
    1. 서버 리스타트
    2. 확인: http://localhost/redmine/admin/plugins


Note: any change to the init.rb file of your plugin requires to restart the application as it is not reloaded on each request.

'프로젝트 > Redmine' 카테고리의 다른 글

잠시 쉬어감 (Ruby on Rails 공부중)  (0) 2016.02.16
Redmine 설치  (0) 2016.02.15
Redmine을 시작하며  (0) 2016.02.15