tag:support.appharbor.com,2010-11-23:/discussions/problems/90179-appharbors-background-worker-runs-unintentional-exe-filesAppHarbor: Discussion 2018-10-19T03:07:21Ztag:support.appharbor.com,2010-11-23:Comment/421968742017-03-20T23:17:03Z2017-03-20T23:17:03ZAppHarbor's Background Worker runs unintentional EXE files<div><p>Never mind, i was impatient. Found a solution here: <a href="https://support.appharbor.com/kb/getting-started/background-workers">https://support.appharbor.com/kb/getting-started/background-workers</a></p>
<p>Going to give it a shot now!</p></div>Keftag:support.appharbor.com,2010-11-23:Comment/421968742017-03-20T23:21:41Z2017-03-20T23:21:41ZAppHarbor's Background Worker runs unintentional EXE files<div><p>No. It didn't help since the exe files that I added are not in the source I upload, so I can't edit any .config files for them. Problem not solved!</p></div>Keftag:support.appharbor.com,2010-11-23:Comment/421968742017-03-22T22:22:55Z2017-03-22T22:22:55ZAppHarbor's Background Worker runs unintentional EXE files<div><p>Hi,</p>
<p>Ok so you could actually just add the configuration files matching the name of the executables to configure it using the approach outlined in the KB article. Have you tried that?</p>
<p>Another solution would be to add a <code>Procfile</code> (currently in public beta) by specifying the executable to run like so:</p>
<pre>
<code>urgentworker: exampleworker.exe</code>
</pre>
<p>And put it in the root directory of the repository. This will instruct the background worker to only run the executables listed in the Procfile, which can also take arguments and have multiple executables per worker, e.g. like so:</p>
<pre>
<code>fooworker: exampleworker.exe foo bar
fooworker: bar.exe qux</code>
</pre>
<p>Perhaps that'd be more convenient for your use case?</p>
<p>Best,<br>
Rune</p></div>runetag:support.appharbor.com,2010-11-23:Comment/421968742017-03-22T22:59:39Z2017-03-22T22:59:39ZAppHarbor's Background Worker runs unintentional EXE files<div><p>The Procfile worked correctly, thank!</p>
<p>I have another issue but this one is closed for now</p></div>Kef