Skip to content

Comments

Fix bug with development seeder#1336

Merged
stevepolitodesign merged 1 commit intomainfrom
sp-development-seeder
Feb 13, 2026
Merged

Fix bug with development seeder#1336
stevepolitodesign merged 1 commit intomainfrom
sp-development-seeder

Conversation

@stevepolitodesign
Copy link
Contributor

Closes #1335.

We currently ignore the development directory via
config.autoload_lib(ignore: %w[assets tasks development]).

I initially did this so that deployed environments would not attempt to
auto-load these files. This is because originally, we called abort within
those files to ensure they could not be called in deployed environments.

This would happen if the application was using Tailwind CSS for
Rails
, since that requires calling bin/rails tailwindcss:watch, which loads all tasks.

Closes #1335.

We currently ignore the `development` directory via
`config.autoload_lib(ignore: %w[assets tasks development])`.

I initially did this so that deployed environments would not attempt to
auto-load these files. This is because originally, we called `abort` within
those files to ensure they could not be called in deployed environments.

This would happen if the application was using [Tailwind CSS for
Rails][tailwind], since that requires calling `bin/rails
tailwindcss:watch`, which loads all tasks.

[tailwind]: https://github.com/rails/tailwindcss-rails
@stevepolitodesign
Copy link
Contributor Author

Noting that I pushed these changes up to Heroku, and the build succeeded, but the tasks will raise if called, which is expected.

Screenshot 2026-02-13 at 11 01 29 AM Screenshot 2026-02-13 at 11 02 03 AM

@stevepolitodesign
Copy link
Contributor Author

And, more importantly, the task runs locally now.

@stevepolitodesign stevepolitodesign merged commit 8d2c145 into main Feb 13, 2026
2 checks passed
@stevepolitodesign stevepolitodesign deleted the sp-development-seeder branch February 13, 2026 16:12
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 this pull request may close these issues.

Seed task fails locally

1 participant