Comments (8)
@bigboateng Yes locally, then commit and push as usual.
from heroku-buildpack-run.
oh just read your message above, seems like i need to add: #!/bin/bash
line and set the flag
from heroku-buildpack-run.
Hi there,
I just added it. There are also some other changes. You can now specify any types of commands in addition to shell scripts, e.g. binaries and native UNIX commands.
For most users this shouldn't change anything, except that now any shell scripts must be executable, i.e. they must have a #!/bin/bash
line and the executable flag set (chmod +x script.sh
).
Let me know if the changes work for you.
from heroku-buildpack-run.
The weird thing is that this actually broke deploys for us just now.
-----> Running: ./buildpack-run.sh
/app/tmp/buildpacks/d4963cfdc610c1afed0921a93443e079284fcd2706707c8a33c3d1220c492dbfcb751a745f252dfc67a3828cf1f3cdd01d6bf5d0fc25fa0b511b62c391305643/bin/compile: line 61: ./buildpack-run.sh: Permission denied
-----> Aborting build because './buildpack-run.sh' exited with a non-zero code (126)
! Push rejected, failed to compile Run app.
! Push failed
We have a script that generates a static.json file and saves it, but for some reason, the latest changes caused a permission denied issue which then quit the whole deploy. I works fine on the last commit before all of your recent changes though.
from heroku-buildpack-run.
Yes, shell scripts are now executed rather than sourced. Thus:
#!/bin/bash
chmod +x buildscipt-run.sh
from heroku-buildpack-run.
Yes, shell scripts are now executed rather than sourced. Thus:
#!/bin/bash
chmod +x buildscipt-run.sh
@weibeld where do you run the command chmod +x buildscipt-run.sh
? locally?
from heroku-buildpack-run.
@weibeld Perfect, it works now! Thank you very much!
from heroku-buildpack-run.
@vsemionov Great, you're welcome!
from heroku-buildpack-run.
Related Issues (7)
- Could we get an example of how to read Heroku config vars? HOT 4
- should check the exit code of source and fail the build if script fails to execute correctly
- Custom script name HOT 5
- Change folder permission HOT 4
- BUILDPACK_RUN Custom Script Name with Parameters HOT 2
- Buildpack failing during Heroku build HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-buildpack-run.