/scripts/runner does not exist
Added by Tom Engemann about 11 years ago
Hey there
I need the scipt "runner" in the path: "/path/to/redmine/scripts/runner", but it doesn't exist. Where do i get the script from?
Replies (2)
RE: /scripts/runner does not exist
-
Added by Marco Gutsche about 11 years ago
Maybe this thread will help.
RE: /scripts/runner does not exist
-
Added by Tom Engemann about 11 years ago
Okey thanks but it doesn't work:
I need to change the password for one user.
RAILS_ENV=production ./rails runner 'user = "admin" ; user.password, user.password_confirmation = "123456788"; user.save!'
I get this error message:
/opt/redmine-2.4.2-0/apps/redmine/htdocs/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/commands/runner.rb:54:in `eval': undefined method `password=' for "admin":String (NoMethodError) from /opt/redmine-2.4.2-0/apps/redmine/htdocs/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/commands/runner.rb:54:in `eval' from /opt/redmine-2.4.2-0/apps/redmine/htdocs/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/commands/runner.rb:54:in `<top (required)>' from /opt/redmine-2.4.2-0/apps/redmine/htdocs/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/commands.rb:64:in `require' from /opt/redmine-2.4.2-0/apps/redmine/htdocs/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/commands.rb:64:in `<top (required)>' from ./rails:6:in `require' from ./rails:6:in `<main>'