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/commands
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
..
console_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
credentials_test.rb Reword test names in credentials_test.rb 2019-03-25 12:44:51 +05:30
db_system_change_test.rb Revise wording on invalid database error messages 2019-01-09 14:23:29 -05:00
dbconsole_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
dev_test.rb Adds Rails:Command for dev:cache that has the same behaviour as the rake task 2018-08-13 11:27:01 -04:00
encrypted_test.rb Recommend use of rails over bin/rails 2018-07-06 22:46:35 +02:00
initializers_test.rb Add -e/--environment option to rails initializers 2019-03-16 10:02:06 +09:00
notes_test.rb Adds register_tags 2019-04-12 08:55:42 +02:00
routes_test.rb Remove the Amazon SES ingress 2019-04-14 12:15:54 -04:00
secrets_test.rb Deprecate encrypted secrets in favor of credentials. 2017-11-12 17:50:09 +01:00
server_test.rb Allow using env var to specify pidfile 2019-06-19 14:06:38 +01:00