Project

General

Profile

redmine on FreeBSD

Added by wolf white about 1 year ago

hi,
i try to install redmine 5.0.5 on FreeBSD but when i try test with webrick or puma or thin bundle say :

# bundle exec rails server webrick -e production
/usr/local/lib/ruby/gems/3.0/gems/thor-1.2.1/lib/thor/base.rb:525:in `handle_argument_error': ERROR: "rails server" was called with arguments ["webrick"] (Thor::InvocationError)
Usage: "rails server -u [thin/puma/webrick] [options]" 
    from /usr/local/lib/ruby/gems/3.0/gems/thor-1.2.1/lib/thor/command.rb:34:in `rescue in run'
    from /usr/local/lib/ruby/gems/3.0/gems/thor-1.2.1/lib/thor/command.rb:20:in `run'
    from /usr/local/lib/ruby/gems/3.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
    from /usr/local/lib/ruby/gems/3.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
    from /usr/local/lib/ruby/gems/3.0/gems/railties-6.1.7.2/lib/rails/command/base.rb:69:in `perform'
    from /usr/local/lib/ruby/gems/3.0/gems/railties-6.1.7.2/lib/rails/command.rb:48:in `invoke'
    from /usr/local/lib/ruby/gems/3.0/gems/railties-6.1.7.2/lib/rails/commands.rb:18:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'
/usr/local/lib/ruby/gems/3.0/gems/railties-6.1.7.2/lib/rails/commands/server/server_command.rb:130:in `perform': wrong number of arguments (given 1, expected 0) (ArgumentError)
    from /usr/local/lib/ruby/gems/3.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
    from /usr/local/lib/ruby/gems/3.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
    from /usr/local/lib/ruby/gems/3.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
    from /usr/local/lib/ruby/gems/3.0/gems/railties-6.1.7.2/lib/rails/command/base.rb:69:in `perform'
    from /usr/local/lib/ruby/gems/3.0/gems/railties-6.1.7.2/lib/rails/command.rb:48:in `invoke'
    from /usr/local/lib/ruby/gems/3.0/gems/railties-6.1.7.2/lib/rails/commands.rb:18:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

and when i try with option u i have :

# bundle exec rails server -u webrick -e production
Could not load server "webrick". Maybe you need to the add it to the Gemfile?

  gem "webrick" 

Run `bin/rails server --help` for more options.

where the problem ? i follow the install instruction...
best regard,
white-wolf


Replies (1)

RE: redmine on FreeBSD - Added by Oleg Zyazev about 1 year ago

Hi!

Usage: "rails server -u [thin/puma/webrick] [options]"

Change "webrick" to "thin".
Server started by string "bundle exec rails server -u thin -e production"

Best regards

    (1-1/1)