Giter VIP home page Giter VIP logo

Comments (3)

nibynool avatar nibynool commented on June 26, 2024 1

I should add, in my CI/CD pipeline I run sls deploy --nos3sync as one step and then sls s3sync:sync as an additional step. This may do what you want if you run your bash script between the two phases.

from serverless-s3-sync.

nibynool avatar nibynool commented on June 26, 2024

I'm not sure how best to handle this. The hooks used by this plugin are defined at

this.hooks = {
'after:deploy:deploy': () => options.nos3sync ? undefined : BbPromise.bind(this).then(this.sync).then(this.syncMetadata),
'before:remove:remove': () => BbPromise.bind(this).then(this.clear),
's3sync:sync': () => BbPromise.bind(this).then(this.sync),
's3sync:metadata': () => BbPromise.bind(this).then(this.syncMetadata)
};

You could make sure that your bash script is using hooks that are defined earlier in the process, or you may need to look at how SLS prioritises the hook order (they may be run in parallel).

Apart from pointing you to the hooks being used, I don't think this is a problem that can be resolved by the plugin (unless you want to create a feature request for a hook/event system within the plugin and then offer some code to help solve it).

from serverless-s3-sync.

nibynool avatar nibynool commented on June 26, 2024

@ergousha if you are happy with my response as a resolution can you please close this issue? If you feel it needs a better response can you please provide some additional information as to how you would like it actioned.

from serverless-s3-sync.

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.