Giter VIP home page Giter VIP logo

Comments (8)

weibeld avatar weibeld commented on June 4, 2024 2

@bigboateng Yes locally, then commit and push as usual.

from heroku-buildpack-run.

justinkchen avatar justinkchen commented on June 4, 2024 1

oh just read your message above, seems like i need to add: #!/bin/bash line and set the flag

from heroku-buildpack-run.

weibeld avatar weibeld commented on June 4, 2024

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.

justinkchen avatar justinkchen commented on June 4, 2024

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.

weibeld avatar weibeld commented on June 4, 2024

Yes, shell scripts are now executed rather than sourced. Thus:

  1. #!/bin/bash
  2. chmod +x buildscipt-run.sh

from heroku-buildpack-run.

bigboateng avatar bigboateng commented on June 4, 2024

Yes, shell scripts are now executed rather than sourced. Thus:

  1. #!/bin/bash
  2. chmod +x buildscipt-run.sh

@weibeld where do you run the command chmod +x buildscipt-run.sh? locally?

from heroku-buildpack-run.

vsemionov avatar vsemionov commented on June 4, 2024

@weibeld Perfect, it works now! Thank you very much!

from heroku-buildpack-run.

weibeld avatar weibeld commented on June 4, 2024

@vsemionov Great, you're welcome!

from heroku-buildpack-run.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.