Project

General

Profile

create a plugin

Added by Anonymous about 13 years ago

How to create a new plugin redmine? I can not do with this tutorial [[http://www.redmine.org/projects/redmine/wiki/Plugin_Tutorial]], can you help me?


Replies (3)

RE: create a plugin - Added by Marco Gutsche about 13 years ago

Hello,

what is your problem with the tutorial? Helping without a specific question is slightly difficult.

RE: create a plugin - Added by Michał Turoń over 12 years ago

Hi

I cannot create the plugin this way also.
After install all (?) needed gems I have effect:

...
C:\Program Files\BitNami Redmine Stack\apps\redmine>export RAILS_ENV="production"
'export' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\BitNami Redmine Stack\apps\redmine>set RAILS_ENV="production"

C:\Program Files\BitNami Redmine Stack\apps\redmine>ruby script/generate redmine_plugin Polls
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require':no such file to load -- initializer (LoadError)
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Program Files/BitNami Redmine Stack/apps/redmine/config/boot.rb:55:in `load_initializer'
from C:/Program Files/BitNami Redmine Stack/apps/redmine/config/boot.rb:38:in `run'
from C:/Program Files/BitNami Redmine Stack/apps/redmine/config/boot.rb:11:in `boot!'
from C:/Program Files/BitNami Redmine Stack/apps/redmine/config/boot.rb:122:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from script/generate:2:in `<main>'

C:\Program Files\BitNami Redmine Stack\apps\redmine>
...

I'm beginner in ruby/redmine development.
Could sb help me?
Thanks
Michal

RE: create a plugin - Added by Prashant Ladha over 12 years ago

Michael,
I think export command is for *NIX servers.
since you are using Bitnami stack on a windows box, you might want to use the SET command.

also, the command has to be executed from apps\redmine\vendor\plugins folder.
Even, I am new this Redmine and its Ruby based code, so I also ran into this issue but spent a lot of time in getting it resolved. Which I did using these forums.

Thanks,
Prashant.

    (1-3/3)