Skip to content
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

Added Cloud Run Support #542

Closed
wants to merge 3 commits into from
Closed

Added Cloud Run Support #542

wants to merge 3 commits into from

Conversation

ajay-k07
Copy link

@ajay-k07 ajay-k07 commented Jan 6, 2023

Added Cloud Run Support by creating a separate Workflow and documented the steps which need to be followed along with screen shorts

serverpod/serverpod_docs#4

List which issues are fixed by this PR. You must list at least one issue.

Deployment Support to Cloud Run

Pre-launch Checklist

  • I read the Contribute page and followed the process outlined there for submitting PRs.
  • This update cointains only one single feature or bug fix and nothing else. (If you are submitting multiple fixes, please make multiple PRs.)
  • I read and followed the Dart Style Guide and formatted the code with dart format.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.
  • I added new tests to check the change I am making.
  • All existing and new tests are passing.
  • Any breaking changes are documented below.

@github-actions
Copy link

github-actions bot commented Jan 6, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@ajay-k07 ajay-k07 changed the title Added Cloud Added Cloud Run Support Jan 6, 2023
@ajay-k07
Copy link
Author

ajay-k07 commented Jan 6, 2023

I have read the CLA Document and I hereby sign the CLA

Copy link
Collaborator

@vlidholt vlidholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this to be approved, it need full support of all features in the AWS deployment.

  1. Deployment of new versions through Github.
  2. Support for autoscaling.
  3. Separate instances for Postgres and Redis.
  4. Support for file uploads.
  5. Correct setup for certificates and domain names.

I think at the current state, this may be better off as a tutorial. I would be happy to link to it from the documentation.

@ajay-k07
Copy link
Author

ajay-k07 commented Jan 9, 2023

Thanks for the suggestion.

As of now when we do a push to GitHub it will create a new revision of service and migrate the traffic to the new one. The old one will still exist if some problem occurs we can change the traffic from new revision to old revision.

Cloud run automatically supports scalling we can even spin up 100 of serverpod service running within seconds.

We are packing our serverpod server into a docker( size ~30mb ) so that we can easily deploy them to any cloud services or even physical servers

As Suggested I will work on that postgres , redis , domain and certification part. And will make it as a complete solution and will keep you posted. If possible can you create this as feature and assign to me

@vlidholt
Copy link
Collaborator

vlidholt commented Feb 7, 2023

We will soon be starting work on GCP support, this may be a nice starting point!

@ajay-k07
Copy link
Author

ajay-k07 commented Feb 8, 2023

Hi @vlidholt that's good to hear. Please let me know how can I help you 😃

@vlidholt
Copy link
Collaborator

Thank you! I started working on this now. Looks like a great entry point. :)

@vlidholt
Copy link
Collaborator

vlidholt commented Mar 5, 2023

I've been working on GCP deployment over the past weeks. There is a GCP module up for review here:
serverpod/terraform-google-serverpod-cloud-engine#1

I'll use this code as a base for the deployment, so @ajay-k07 will get credited as co-author.

@ps6067966
Copy link

ps6067966 commented Jun 5, 2023

I wanted to use serverpod for production apps, is it possible to deploy or should we wait for some more time?

@vlidholt
Copy link
Collaborator

vlidholt commented Jun 7, 2023

We have added full support for Cloud Run or Compute Engine. The guides for deploying your Serverpod are available here:
https://docs.serverpod.dev/deployments/deployment-strategy

@vlidholt vlidholt closed this Jun 7, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jun 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants