Ruby on Rails, Production mode

Hello, I have a problem.
I’m on linux, with Ruby version 2.5.1, and rails version 5.2.3.
I can’t launch my application in production mode, but in development mode everything goes well.

Thanks again for your help! :slight_smile:

zcd@zcd-VirtualBox:~/ror/prolixe2019$ sudo rails s -e production
=> Booting Puma
=> Rails 5.2.3 application starting in production
=> Run rails server -h for more startup options
Exiting
Traceback (most recent call last):
84: from bin/rails:4:in <main>' 83: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inrequire’
82: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in load_dependency' 81: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inblock in require’
80: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' 79: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:inrequire_with_bootsnap_lfi’
78: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register' 77: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:inblock in require_with_bootsnap_lfi’
76: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require' 75: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands.rb:18:in<top (required)>’
74: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/command.rb:46:in invoke' 73: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/command/base.rb:65:inperform’
72: from /var/lib/gems/2.5.0/gems/thor-0.20.3/lib/thor.rb:387:in dispatch' 71: from /var/lib/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:ininvoke_command’
70: from /var/lib/gems/2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in run' 69: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:inperform’
68: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in tap' 67: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:147:inblock in perform’
66: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:53:in start' 65: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/server.rb:283:instart’
64: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/server.rb:354:in wrapped_app' 63: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:27:inapp’
62: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/server.rb:219:in app' 61: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/server.rb:319:inbuild_app_and_options_from_config’
60: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:40:in parse_file' 59: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:49:innew_from_string’
58: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in eval' 57: from config.ru:in
56: from config.ru:in new' 55: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:55:ininitialize’
54: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in instance_eval' 53: from config.ru:3:inblock in ’
52: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:48:in require_relative' 51: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inrequire’
50: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in load_dependency' 49: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inblock in require’
48: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' 47: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:inrequire_with_bootsnap_lfi’
46: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register' 45: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:inblock in require_with_bootsnap_lfi’
44: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require' 43: from /home/zcd/ror/prolixe2019/config/environment.rb:5:in<top (required)>’
42: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/application.rb:361:in initialize!' 41: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:60:inrun_initializers’
40: from /usr/lib/ruby/2.5.0/tsort.rb:205:in tsort_each' 39: from /usr/lib/ruby/2.5.0/tsort.rb:226:intsort_each’
38: from /usr/lib/ruby/2.5.0/tsort.rb:347:in each_strongly_connected_component' 37: from /usr/lib/ruby/2.5.0/tsort.rb:347:incall’
36: from /usr/lib/ruby/2.5.0/tsort.rb:347:in each' 35: from /usr/lib/ruby/2.5.0/tsort.rb:349:inblock in each_strongly_connected_component’
34: from /usr/lib/ruby/2.5.0/tsort.rb:431:in each_strongly_connected_component_from' 33: from /usr/lib/ruby/2.5.0/tsort.rb:350:inblock (2 levels) in each_strongly_connected_component’
32: from /usr/lib/ruby/2.5.0/tsort.rb:228:in block in tsort_each' 31: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:61:inblock in run_initializers’
30: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in run' 29: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:ininstance_exec’
28: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/application/finisher.rb:69:in block in <module:Finisher>' 27: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/application/finisher.rb:69:ineach’
26: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:356:in eager_load!' 25: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:475:ineager_load!’
24: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:475:in each' 23: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:477:inblock in eager_load!’
22: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:477:in each' 21: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:478:inblock (2 levels) in eager_load!’
20: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:246:in require_dependency' 19: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:85:independ_on’
18: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:334:in depend_on' 17: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:47:inrequire_or_load’
16: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in allow_bootsnap_retry' 15: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:48:inblock in require_or_load’
14: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:356:in require_or_load' 13: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:37:inload_interlock’
12: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:13:in loading' 11: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/concurrency/share_lock.rb:151:inexclusive’
10: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:14:in block in loading' 9: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:37:inblock in load_interlock’
8: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:378:in block in require_or_load' 7: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inrequire’
6: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in load_dependency' 5: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inblock in require’
4: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' 3: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:inrequire_with_bootsnap_lfi’
2: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register' 1: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:inblock in require_with_bootsnap_lfi’
/var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require’: /home/zcd/ror/prolixe2019/app/controllers/users/passwords_controller.rb:1: syntax error, unexpected ‘:’, expecting end-of-input (SyntaxError)
frozen_string_literal: false