Open opdavies opened 5 years ago
It can be configured inside composer.json directly: https://getcomposer.org/doc/06-config.md#process-timeout
But then everything that composer does is obeying that. Personally I'm doing this: https://github.com/gamestrafe/thedivision2/blob/master/scripts/run.sh Which works rather well for me so far. It's very specific to my setup though, so paths probably will need changing if you want to adopt it (haven't been un-lazy enough to make it more universal yet).
Hmm, I haven't experienced any timeout issues when running sculpin generate ...
on the command line, only when running it via a Composer script.
It's because composer has a timeout, the sculpin command directly has not.
Sorry, yes. I was trying to say that looking at the script, if you're running vendor/bin/sculpin generate ...
directly, I haven't seen issues with that timing out.
I've used bash scripts before just to simplify the command which works fine (actually, I still have some on my site - https://github.com/opdavies/oliverdavies.uk/blob/master/scripts/watch.sh), it's just the Composer script way seems cleaner if it didn't have the timeout issue.
Last night I submitted a PR to Composer that would provide a quick way to stop known long-running scripts from timing out. I'll look into updating this repo to use that approach or something similar (perhaps with wider support for composer versions to start).
When running
composer sculpin-watch
, the command times out after 5 minutes due to the process timeout.COMPOSER_PROCESS_TIMEOUT=0 composer sculpin-watch
works.Is there a better way of doing this?