mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
2e5ec9a6ef
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. |
||
---|---|---|
.. | ||
console_test.rb | ||
credentials_test.rb | ||
db_system_change_test.rb | ||
dbconsole_test.rb | ||
dev_test.rb | ||
encrypted_test.rb | ||
initializers_test.rb | ||
notes_test.rb | ||
routes_test.rb | ||
secrets_test.rb | ||
server_test.rb |