title: Heroku. bash: apiworker: command not found
body: <p>I'm following this Heroku/Go example <a href="https://github.com/heroku-examples/go_queue_example" rel="nofollow">https://github.com/heroku-examples/go_queue_example</a> for a web and worker app.</p>
  
  <p>Running the app via <strong><em>heroku local</em></strong> works but when deploying to Heroku I get the following <strong><em>command not found errors</em></strong> in the log:</p>
  
  <pre><code>2016-03-20T11:55:51.029091+00:00 heroku[worker.1]: Starting process with command `apiworker`
  2016-03-20T11:55:51.603896+00:00 heroku[worker.1]: State changed from starting to up
  2016-03-20T11:55:52.842882+00:00 app[worker.1]: bash: apiworker: command not found
  2016-03-20T11:55:53.624937+00:00 heroku[worker.1]: Process exited with status 127
  2016-03-20T11:55:53.634515+00:00 heroku[worker.1]: State changed from up to crashed
  2016-03-20T11:58:56.772069+00:00 heroku[web.1]: State changed from crashed to starting
  2016-03-20T11:58:56.986655+00:00 heroku[web.1]: Starting process with command `apiweb`
  2016-03-20T11:58:58.389926+00:00 app[web.1]: bash: apiweb: command not found
  2016-03-20T11:58:59.060779+00:00 heroku[web.1]: State changed from starting to crashed
  2016-03-20T11:58:59.049447+00:00 heroku[web.1]: Process exited with status 127
  </code></pre>
  
  <p>The Procfile:</p>
  
  <pre><code>web: apiweb
  worker: apiworker
  </code></pre>
  
  <p>The project structure:</p>
  
  <pre><code>.
  ├── Godeps
  │   ├── Godeps.json
  │   └── Readme
  ├── Procfile
  ├── cmd
  │   ├── apiweb
  │   │   └── main.go
  │   └── apiworker
  │       └── main.go
  ├── vendor
  &lt;snip&gt;
  └── api.go
  </code></pre>
  
  <p>Surprisingly, I've had little success with searching for answers in the documentation, here, and elsewhere. Any help would be greatly appreciated!</p>