mietek / haskell-on-heroku

Buildpack for deploying Haskell apps
BSD 3-Clause "New" or "Revised" License
131 stars 16 forks source link

.buildpack/bin/build not on PATH #39

Closed pbrisbin closed 9 years ago

pbrisbin commented 9 years ago

Just tried Haskell on Heroku in a fresh app. On trying to run build step, I get command not found.

However, doing:

% heroku run --size=PX bash
~$ ./.buildpack/bin/build

Is running now -- so it's there, just not on $PATH.

The only thing special I've done is add a .halcyon-magic/sandbox file for a custom source -- could that cause it?

mietek commented 9 years ago

The .halcyon-magic/sandbox file needs to be named .halcyon/sandbox-sources, as listed in the Halcyon user’s reference. However, this is not the issue.

I cannot reproduce the problem which you are seeing. I just created a fresh app on Heroku, did a git push, then heroku run bash, and my PATH does include /app/.buildpack/bin. Can you gist a complete log of what you are doing? Can you join #haskell-deployment on freenode, so that we can debug this together?

pbrisbin commented 9 years ago

The .halcyon-magic/sandbox file needs to be named .halcyon/sandbox-sources

Just addressed that, thanks -- I found it via an old Issue when I couldn't find it in docs (I was looking at Haskell on Heroku docs, not Halcyon...).

I cannot reproduce the problem which you are seeing

% g remove -v | grep staging
staging git@heroku.com:hoffa-staging.git (fetch)
staging git@heroku.com:hoffa-staging.git (push)
% heroku run --remote staging --size=PX build
Running `build` attached to terminal... up, run.5843
bash: build: command not found
% heroku run --remote staging --size=PX 'bash ./.buildpack/bin/build'                                         hoffa:master
Running `bash ./.buildpack/bin/build` attached to terminal... up, run.1224
-----> Self-updating bashmenot...

I'm trying to get the first successful build completed, then I'll hop in IRC.

mietek commented 9 years ago

Thanks for catching this. Fixed in https://github.com/mietek/haskell-on-heroku/commit/6819644dd608d7a72b2567fcf5d4c3565386caf8.