-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QUESTION: build once run anywhere possible with serverless-webpack? #558
Comments
Any update on this? Currently "serverless deploy" command is triggering a compile, but i would need to refer the already compiled code in "output" folder during deployment. Please suggest |
This PR might be what you are seeking. You can install the PR for now; that what I am doing. |
Here's how I do it.
|
Thanks Miguel! But sill the --no-build is doing the build before deploy. I configured my package.json with the below 2 scripts "build": "serverless webpack", And i give the below commands npm run build -> For building the code Please let me know if i am missing any item here |
Try |
This PR is tentatively planned for release 5.3.3 |
Thanks Miguel!. It works great and as expected.. Please release 5.3.3 at the earliest.. Eagerly waiting to see it in npm repository. |
I'm eagerly waiting for this PR too! We need to release 5.3.2 first. =) |
Hi Miguel, Could you please tell me if any release dates planned for 5.3.2 and 5.3.3? |
Hi @sakthi-ganesh , 5.3.2 should go out soon. Just waiting for approval of the release PR. |
We currently have 5 environments we deploy our lambda functions to (dev, test, uat, stage, prod)
in our CI/CD pipeline we call sls deploy for each one, triggering a webpack build each time.
Is it possible with serverless-webpack to build the functions once, and deploy the single build to each environment? I know some configuration files get built with stage specific names (roles, the arn for each function, others...), but is that a separate part of the process from the webpack build? Or doe the webpack step include stage specific output?
Can I run the package thru webpack once, and include the results in the packaging for each stage?
The text was updated successfully, but these errors were encountered: