Skip to content
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

db/config.yml is required in the moment the tasks are loaded. #152

Open
salzig opened this issue Feb 19, 2019 · 0 comments · May be fixed by #153
Open

db/config.yml is required in the moment the tasks are loaded. #152

salzig opened this issue Feb 19, 2019 · 0 comments · May be fixed by #153

Comments

@salzig
Copy link

salzig commented Feb 19, 2019

db/config.yml is required in the moment the tasks are loaded.

I tend to use a rake task like the following to setup development environments, without having having the actually used config under version control.

namespace :dev do
  desc 'Setup Dev Environment'
  task setup: 'db/config.yml'

  # one rule to rule them all. Copy any .yml.example to matching .yml
  rule '.yml' => '.yml.example' do |task|
    cp task.source, task.name
  end
end

Sadly StandaloneMigrations::Tasks.load_tasks will fail with a missing db/config.yml, so i can't run my dev:setup tasks, which would create the file.

Would be awesome if the db/config.yml would only be required when the tasks are executed, not just loaded.

@salzig salzig linked a pull request Feb 19, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant