Commit Graph

86 Commits

Author SHA1 Message Date
Jonathan Hefner
cb0da4f817 Fix typos, grammar, and formatting [ci-skip]
This is a collection of minor superficial improvements.  It does not
include any significant content changes.
2020-12-28 12:05:53 -06:00
Alan Savage
58b9ab894b
Fixes #40218 clarify different types of initializers (#40864)
* Fixes #40218

Clarify the difference between Railtie initializers and config initializers in
the initialization guide.

* Update guides/source/initialization.md

Co-authored-by: Alan Savage <asavageiv@gmail.com>
Co-authored-by: Rafael França <rafael@franca.dev>
2020-12-18 16:36:26 -05:00
Haroon Ahmed
6504e97561 update global rails commands to bundled rails i.e. bin/rails 2020-04-11 17:32:26 +01:00
David Heinemeier Hansson
3e0cdbeaf4
require, require_relative, load by double quotes (#38841)
* require, require_relative, load by double quotes

We're getting rid of all single quote usage, unless it serves a specific purpose, as per the general style guide.
2020-03-29 16:30:52 -07:00
Haroon Ahmed
db1ae8cbb4 remove reference to global rails command and replace with bin/rails 2019-12-27 19:32:37 +00:00
Petrik de Heus
1714d4ff86 Remove accidental git merge marker [ci skip] 2019-12-25 09:52:02 -05:00
Rafael Mendonça França
b67785a476
Merge pull request #37037 from Sean0628/update-initialization-page
Update The Rails Initialization Process page[ci skip]
2019-12-17 19:51:14 -03:00
Israel Tomilayo
ee179088df [skip ci] Update initialization guide start method to include change
- remove #print_boot_infornation method and method call
2019-12-02 12:04:15 +01:00
Tatsuya Hoshino
41f0fb8c6e Remove needless require "pp"
In Ruby 2.5 and later, `Kernel#pp` is automatically loaded.

https://bugs.ruby-lang.org/issues/14123

This changes remove the needless `require "pp"`.
2019-11-06 22:50:53 +09:00
Sho Ito
c5102225a3 update initialization.md 2019-08-25 21:55:50 +09:00
dineshpanda
c3a08f8844 [ci skip] Refer actionmailbox and actiontext in the guide 2019-06-26 03:07:50 +05:30
Ben Thorner
2e5ec9a6ef Allow using env var to specify pidfile
Previously it was only possible to specify the location of the pidfile
for the 'rails server' command with the '-P' flag. This adds support for
specifying the pidfile using a PIDFILE env var, which can still be
overridden by the '-P' flag and with the default pidfile path unchanged.

The motivation for this feature comes from using Docker to run multiple
instances of the same rails app. When developing a rails app with
Docker, it's common to bind-mount the rails root directory in the
running container, so that changes to files are shared between the
container and the host. However, this doesn't work so well with the
pidfile and it's necessary to (remember to) add a '-P' flag to the
'rails server' command line; being able to specify this flag using an
env var would make developing with Rails+Docker a bit simpler.
2019-06-19 14:06:38 +01:00
kojoma
731cb4f26c [ci skip] Fix rails/command.rb document 2019-06-10 15:46:45 +09:00
Paul McMahon
7b9c19d94b Rails guides are now served over https
http links will be redirected to the https version, but still better to
just directly link to the https version.
2018-07-24 11:29:31 +09:00
sohopro
a2fa326139
fix error of a file name 2018-07-02 16:03:23 +09:00
willnet
534f550989 [ci skip]Change requring order of files in doc
This change was made at 4a835aa3236eedb135ccf8b59ed3c03e040b8b01
2018-02-27 17:10:25 +09:00
Yauheni Dakuka
b6baf0c884 Cosmetic changes [ci skip] 2017-11-30 09:35:26 +03:00
yuuji.yaginuma
ad80cef22d Remove not used gems by default [ci skip]
`rack-mount` switched to journey with 5f0b37c.
Also, `rack-cache` will not be used unless you explicitly specify it.

Ref:
037e50ec39
1fc7954685
2017-09-11 07:42:08 +09:00
Yoshiyuki Hirano
0027629cf6 Update The Rails Initialization Process of guide [ci skip] 2017-08-20 09:41:37 +09:00
Koichi ITO
3a900a4e36 Replace Erubis with Erubi in a part of guide [ci skip] 2017-07-16 23:33:02 +09:00
James Bush
fd54d8449a Fix grammar for documentation of rails/command.rb [ci skip] 2017-06-28 13:06:57 -04:00
yuuji.yaginuma
073f4ecb14 allow to pass describe option to rake
Since `Thor::HELP_MAPPINGS` contains `-D`, so `bin/rails -D` show
rails's help. But, in Rails 5.0.1, `bin/rails -D` show the description
of rake task. I think that it is better to have the same behavior.
2017-01-17 14:14:59 +09:00
Kasper Timm Hansen
e592ee20a9 [ci skip] Update initialization guide samples.
Rewrite bits and pieces to mention the command infrastructure.
2016-12-20 20:13:22 +01:00
Vipul A M
06658f1d9d Merge pull request #26390 from Neodelf/format_mds
[ci skip] Simply formatting documents
2016-09-07 00:57:19 +05:30
Neodelf
e0e7047233 [ci skip] Simply formatting documents 2016-09-06 22:23:49 +03:00
Ryunosuke Sato
b9e98d62c2 Remove the word "mongrel" from documents
Currently mongrel is not maintained.
And it couldn't be built with any Ruby versions that
supported by Rails.

It is reasonable to remove the word "mongrel" in order to avoid
confusion from newcomer.
2016-09-07 01:59:37 +09:00
Gaurav Sharma
ef4972a338 update doc for prefer require_relative over require + File.expand_path [ci skip] 2016-07-07 01:54:57 +05:30
willnet
9da3720ba9 [ci skip] Remove reference to Rails 4 in the initialization guide.
Following commit removed reference to rails 4, but there is one left.

a9f50f87c3
2016-07-06 22:57:24 +09:00
Vijay Dev
598816f630 Merge branch 'master' of github.com:rails/docrails
Conflicts:
	guides/source/association_basics.md
2016-03-06 06:58:36 +00:00
Sam Ruby
56ed162bf3 Match Puma 3 startup messages [ci skip] 2016-03-04 16:38:34 -05:00
Prathamesh Sonpatki
a9f50f87c3 [ci skip] Remove reference to Rails 4 in the initialization guide. 2016-02-26 15:52:21 +05:30
Ryan Nielson
ac1427d6ca Change command_task.rb to commands_task.rb in docs
The initialization documentation references `rails/commands/command_task.rb`. This appears to be a typo as the file is actually `rails/commands/commands_task.rb`.
2016-02-02 09:20:10 -04:00
Kasper Timm Hansen
e129c0698c [ci skip] Update rails/all.rb reference.
It didn't mention Action Cable's engine.
2015-12-30 22:30:29 +01:00
Kasper Timm Hansen
3e65c3d388 Merge branch 'rails-rake-proxy' 2015-12-13 21:44:03 +01:00
Dharam Gollapudi
52f2f9810e Implement Rake proxy for Rails' command line interface.
Allows any Rake task to be run through `bin/rails` such as `bin/rails db:migrate`,
`bin/rails notes` etc.

The Rake tasks are appended to Rails' help output, and blend in as standard commands.
2015-12-13 20:59:41 +01:00
AnnaErshova
6eada87b61 Edits default config/boot.rb to match what's generated by Rails 4.2. 2015-10-26 15:22:30 -04:00
Rafael Mendonça França
99c042b3cc Merge pull request #19867 from radar/rename-app-rails-loader
Remove redundant 'Rails' from Rails::AppRailsLoader constant
2015-05-27 21:41:06 -03:00
Jake Gavin
c9f05c92a5 Remove unnecessary reference to example Blog app [ci skip] 2015-05-27 12:24:06 -07:00
Ryan Bigg
f9640b0900 Remove redundant 'Rails' from Rails::AppRailsLoader constant 2015-05-21 16:50:41 +10:00
Ankit Gupta
d9e76bd389 docs: syncing with the code, adding aj [ci skip] 2015-05-08 15:22:28 -04:00
Ankit Gupta
1b62428c13 added activejob in list [ci skip] 2015-05-07 22:24:06 -04:00
Islam Wazery
4521aadae0 Rename railties/bin to railties/exe
That will match the new Bundler executables convention.
Bundler Blog Post: http://bundler.io/blog/2015/03/20/moving-bins-to-exe.html
Also updated the necessary tests.
2015-04-11 19:26:34 +02:00
Szymon Madeja
1fda385cdf Update command_tasks source code 2015-04-05 17:10:40 +02:00
Jeremy Kemper
5154089c18 Revert "Merge pull request #19404 from dmathieu/remove_rack_env"
Preserving RACK_ENV behavior.

This reverts commit 7bdc7635b885e473f6a577264fd8efad1c02174f, reversing
changes made to 45786be516e13d55a1fca9a4abaddd5781209103.
2015-03-20 08:14:11 -07:00
Damien Mathieu
d578cbfb5c don't fallback to RACK_ENV when RAILS_ENV is not present 2015-03-19 10:06:28 +01:00
Vipul A M
5cfaf5a46e - Changed IN to ON in markdown renderer condition
- Changed `IN` to `ON` in all note sentences in guides.
2015-01-14 11:52:13 +05:30
Robin Dupret
1fd44213aa Remove the tmp/sessions folder and its clear task
Commit 1aea470 introduced this directory but this was at a time when the
default way to store sessions was on the file system under the tmp
directory.

Let's remove references to it from the documentation as well.

[Robin Dupret & yui-knk]
2015-01-03 19:42:07 +01:00
Xavier Noria
7702974281 warn about reading guides in GitHub
References #18148.
2014-12-23 23:32:50 +01:00
Washington Luiz
da3d6c91ce treetop is no longer a mail (rails) dependency
see 2da7c7985c
2014-08-24 15:24:07 -03:00
Robin Dupret
9ca0f8da2a Tiny documentation fixes [ci skip] 2014-06-29 20:15:28 +02:00