Coder Social home page Coder Social logo

Post deploy hook about bref HOT 4 CLOSED

brefphp avatar brefphp commented on August 24, 2024
Post deploy hook

from bref.

Comments (4)

mnapoli avatar mnapoli commented on August 24, 2024

Most of the time a post-deploy hook doesn't make sense on FaaS because the lambda's filesystem is readonly and the rest (/tmp) can contain temporary files but those are lost on next executions.

If you need to generate a cache it's usually better to generate it before deploying?

from bref.

t-geindre avatar t-geindre commented on August 24, 2024

You're right about the file system.
But that's still relevant for a Redis cache for instance.

from bref.

mnapoli avatar mnapoli commented on August 24, 2024

OK I see, in that case you could do the operation manually right? That would look something like this:

bref deploy
bref cli -- cache:warmup-redis # this runs on a prod lambda

(or use a script/Makefile that wraps the 2)

I think for now it might be better to not add a post-deploy hook because it can be very confusing to users (since it doesn't work like most other hosting solutions). And since it's easily doable outside of Bref it's not a huge necessity either (Bref doesn't intend to cover everything in deployment, other tools can compliment it). Maybe in the future that could change but at first I'd rather aim to have as few features as possible that are not related to FaaS/serverless stuff.

from bref.

t-geindre avatar t-geindre commented on August 24, 2024

Actually, that's exactly what I was thinking after posting my last message.
Since we already use Makefile to run our deployments, we can add more tasks after bref deploy.

from bref.

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.