-
Notifications
You must be signed in to change notification settings - Fork 900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In dev, warn and exit if cable.yml and db yml are missing #12100
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
< joke > We should also warn people to have a config/database.yml
</ joke >
Good call @skateman, I'll add that. |
bin/setup is responsible for automatically copying these files. Since you could intentionally remove them, we'll just warn in bin/update.
797740a
to
6851c70
Compare
chdir APP_ROOT do | ||
# This script is a way to update your development environment automatically. | ||
# Add necessary update steps to this file. | ||
dev_warn_and_exit_if_missing('config/cable.yml', 'config/cable.yml.sample') | ||
dev_warn_and_exit_if_missing('config/database.yml', 'config/database.pg.yml') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Who knows, it's easy enough to help fix issues before someone embarrasses themselves?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair
Checked commit jrafanie@6851c70 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 |
bin/setup is responsible for automatically copying these files.
Since you could intentionally remove them, we'll just warn in bin/update.