Git Product home page Git Product logo

Comments (7)

hanoii avatar hanoii commented on July 18, 2024 1
hooks:
  post-start:
    - exec: 'platform self:update -qy || true'

probably best

from ddev-platformsh.

rfay avatar rfay commented on July 18, 2024

Thanks, and glad you're using some parts. I didn't quite understand what update notification you were talking about?

from ddev-platformsh.

rfay avatar rfay commented on July 18, 2024

Oh you're saying that the platform tool inside is wanting the self-update when you use it. Yeah, it only gets done the one time during build, but the build cache in Docker then doesn't try it again :(

IMO it would be best to disable that.

from ddev-platformsh.

rfay avatar rfay commented on July 18, 2024

We could do the self-update in start.sh, or implement your auto-add-to-start.sh and put it there. Seems like a sad thing to do, but these things always pestering about getting an update are a bit annoying.

from ddev-platformsh.

hanoii avatar hanoii commented on July 18, 2024

the auto add to start could be the hook, you could add a config.platformsh.yml with a post-start hook, although you'll have to add it to the git repo as well as a post_install action as it will otherwise be ignored.

from ddev-platformsh.

hanoii avatar hanoii commented on July 18, 2024
hooks:
  post-start:
    - exec: 'platform self:update -qy'

I added this to my project.

from ddev-platformsh.

lolautruche avatar lolautruche commented on July 18, 2024

Hello
I agree, best would probably be to do this during post-start like @hanoii is suggesting.
Anyway, this will soon change with the Platform CLI v4 as we'll distribute it in a different way (apt, brew...)

from ddev-platformsh.

Related Issues (20)

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.