1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test
Edouard Chin 868866c1fd
Allow a new server Railtie block:
- This is similar to other railties blocks (such as `console`,
  `tasks` ...). The goal of this block is to allow the application
  or a railtie to load code after the server start.

  The use case can be to fire the webpack or react server in
  development or start some job worker like sidekiq or resque.

  Right now, all these tasks needs to be done in a separate
  shell and gem maintainer needs to add documentation on
  how to run their libraries if another program needs to run
  next to the Rails server.

  This feature can be used like this:

  ```ruby
    class SuperRailtie < Rails::Railtie
      server do
        WebpackServer.run
      end
    end
  ```
2020-11-02 18:11:41 +00:00
..
application Allow a new server Railtie block: 2020-11-02 18:11:41 +00:00
command Isolate ARGV in Rails::Command.invoke 2020-02-18 15:02:56 -06:00
commands Remove deprecated support for using the HOST environment variable to specify the server IP 2020-10-30 00:26:07 +00:00
configuration Get rid of unnecessary meta programming 2020-10-07 11:12:02 +09:00
engine Use the single line editor in console test 2019-12-24 20:47:21 +09:00
fixtures/lib
generators Upgrade Puma to 5.x 2020-11-01 14:50:27 -07:00
isolation Make sure log level in development is debug 2020-09-22 16:12:38 +00:00
minitest Fix backtraces for generated plugin tests 2020-10-07 15:40:56 -05:00
railties Allow a new server Railtie block: 2020-11-02 18:11:41 +00:00
test_unit Fixed up error output tests and added a missing failure output test. 2020-05-20 15:54:28 -07:00
abstract_unit.rb Revert "You give jruby_skip & rubinius_skip a good name" 2019-08-02 00:24:11 -04:00
app_loader_test.rb
backtrace_cleaner_test.rb Don't modify relative ./ paths in BacktraceCleaner 2019-10-03 14:06:58 -07:00
chdir_helpers.rb Avoid chdir error in Railties tests on Ruby master 2020-10-04 00:26:03 +01:00
code_statistics_calculator_test.rb
code_statistics_test.rb
console_helpers.rb
engine_test.rb
env_helpers.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
generators_test.rb remove reference to global rails command and replace with bin/rails 2019-12-27 19:32:37 +00:00
initializable_test.rb
json_params_parsing_test.rb
path_generation_test.rb
paths_test.rb
rack_logger_test.rb
rails_info_controller_test.rb
rails_info_test.rb
secrets_test.rb
version_test.rb