Code Monkey home page Code Monkey logo

Comments (7)

fabianobonomini avatar fabianobonomini commented on July 18, 2024 2

same problem here. I upgraded to serveless v4. give it a try if you can

from serverless.

NicoHinderling avatar NicoHinderling commented on July 18, 2024 1

@NicoHinderling Have you tried using the new serverless dev command for local development? If you did, I'm curious to know what serverless-offline solves that dev mode doesn't 🤔 (other than actually being offline with no internet connection)

I just tried it out and I agree that serverless dev does seem like it would speed up iterative development when using our "dev" stage, but:

  1. Right now I share our dev environment with several other engineers, so I don't want to use dev directly all the time. Being able to use it offline is really convenient for this.

  2. I actually dealt with an outage recently where I control + C'd mid deploy to our biggest service's dev environment and it totally broke our cloudformation :( I had to delete everything and re-create it from the ground up, so particularly for that service, I'd probably never use serverless dev altogether given:

    a. what serverless dev does under the hood
    b. how fragile that service apparently is

from serverless.

NicoHinderling avatar NicoHinderling commented on July 18, 2024

@austencollins would maintenance of https://github.com/dherault/serverless-offline ever be taken over or at least have direct support by the serverless company itself?

I've finally completed my experimental migration project (serverless3 -> 4 & npm -> pnpm) and the only two blocking things left are:

  1. local handlers not working for serverless4 (#12621) 🙏
  2. serverless-offline not working for serverless4 (dherault/serverless-offline#1800)

Seems like they are looking for maintainers and I imagine that supporting offline functionality is pretty important for other developers too

edit: shoutouts to hero @DorianMazur

from serverless.

eahefnawy avatar eahefnawy commented on July 18, 2024

@NicoHinderling Have you tried using the new serverless dev command for local development? If you did, I'm curious to know what serverless-offline solves that dev mode doesn't 🤔 (other than actually being offline with no internet connection)

from serverless.

eahefnawy avatar eahefnawy commented on July 18, 2024

@NicoHinderling Thanks for that feedback! That's really helpful.

You could also do sls dev --stage local or sls dev --stage nico, wouldn't that solve both issues?

from serverless.

NicoHinderling avatar NicoHinderling commented on July 18, 2024

@NicoHinderling Thanks for that feedback! That's really helpful.

You could also do sls dev --stage local or sls dev --stage nico, wouldn't that solve both issues?

these still involve deploying, which also increases our number of resources for that service. We've been hitting the limit recently, but I agree that could be a potential alternative for others

from serverless.

eahefnawy avatar eahefnawy commented on July 18, 2024

Hmm yeah, that is a good point 🤔

from serverless.

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.