Skip to content

Indicate squashing is in progress#85

Open
jasonkarns wants to merge 1 commit intojalkoby:masterfrom
jasonkarns:convey-squashing
Open

Indicate squashing is in progress#85
jasonkarns wants to merge 1 commit intojalkoby:masterfrom
jasonkarns:convey-squashing

Conversation

@jasonkarns
Copy link

When squasher is running the rails app, set an environment variable that
the Rails app can interrogate. This way the rails app can behave
differently while squashing.

For example, to disable any rake tasks (like rails-erd) that might hook
into db:migrate tasks and break squasher.

We use an environment variable here because squasher runs outside the
Rails process. So the Rails app can't reference the Squasher runtime
itself.

fixes #83

When squasher is running the rails app, set an environment variable that
the Rails app can interrogate. This way the rails app can behave
differently while squashing.

For example, to disable any rake tasks (like rails-erd) that might hook
into db:migrate tasks and break squasher.

We use an environment variable here because squasher runs outside the
Rails process. So the Rails app can't reference the Squasher runtime
itself.

fixes jalkoby#83
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.

Question / Request: A run-time indicator that squashing is in progress

1 participant