Skip to content
This repository has been archived by the owner on Jan 28, 2025. It is now read-only.

Why is serverless deploy discouraged #560

Closed
thesobercoder opened this issue Aug 25, 2020 · 2 comments
Closed

Why is serverless deploy discouraged #560

thesobercoder opened this issue Aug 25, 2020 · 2 comments

Comments

@thesobercoder
Copy link

I was reading an article on how to deploy a serverless app from a CI/CD environment. The article makes use of the sls deploy command extensively, however since it is discouraged to be used with serverless-next, what other options do we have.

@danielcondemarin
Copy link
Contributor

This project uses the beta version of serverless components. To deploy a serverless component you simply run serverless instead of serverless deploy and that should work fine.
In future once the project is upgraded to work with the newer version of Serverless Components (GA) then it would be serverless deploy.

@dphang
Copy link
Collaborator

dphang commented Aug 29, 2020

@thesobercoder See the comments in this thread for CI/CD solutions: #328 (comment), #328 (comment).

My solution right now is to create a deployment script that syncs the .serverless directory with AWS S3 and deploys three different stages, all in CI/CD workflows (I use GitHub Actions, but the script I created should work for any provider).

As mentioned, with the GA version of Serverless Components you will get serverless deploy and I think also there would be support for syncing serverless state through Serverless Framework

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants