module

Rails::AppLoader

v7.1.3.4 - Show latest stable

No documentation available for this module.

Constants

BUNDLER_WARNING = <<EOS\nBeginning in Rails 4, Rails ships with a `rails` binstub at ./bin/rails that\nshould be used instead of the Bundler-generated `rails` binstub.\n\nIf you are seeing this message, your binstub at ./bin/rails was generated by\nBundler instead of Rails.\n\nYou might need to regenerate your `rails` binstub locally and add it to source\ncontrol:\n\nrails app:update:bin # Bear in mind this generates other binstubs\n# too that you may or may not want (like yarn)\n\nIf you already have Rails binstubs in source control, you might be\ninadvertently overwriting them during deployment by using bundle install\nwith the --binstubs option.\n\nIf your application was created prior to Rails 4, here's how to upgrade:\n\nbundle config --delete bin # Turn off Bundler's stub generator\nrails app:update:bin # Use the new Rails executables\ngit add bin # Add bin/ to source control\n\nYou may need to remove bin/ from your .gitignore as well.\n\nWhen you install a gem whose executable you want to use in your app,\ngenerate it and add it to source control:\n\nbundle binstubs some-gem-name\ngit add bin/new-executable\n\nEOS

EXECUTABLES = ["bin/rails", "script/rails"]

RUBY = Gem.ruby

Files

  • railties/lib/rails/app_loader.rb