https://github.com/plugfox/cloud_run
Dart cloud run low level framework
https://github.com/plugfox/cloud_run
Last synced: 2 months ago
JSON representation
Dart cloud run low level framework
- Host: GitHub
- URL: https://github.com/plugfox/cloud_run
- Owner: PlugFox
- License: mit
- Created: 2021-03-11T19:50:03.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-12T10:03:09.000Z (about 5 years ago)
- Last Synced: 2025-09-13T05:52:25.346Z (8 months ago)
- Language: Dart
- Size: 13.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# cloud_run
Dart cloud run low level framework
### Hot to run a local instance:
```shell
dart run .\bin\server.dart --port 8080 --concurrency=5
```
### Config Google Cloud Run:
[Installing Google Cloud SDK](https://cloud.google.com/sdk/docs/install)
```shell
gcloud auth login
gcloud config set core/project PROJECT-NAME
gcloud config set run/platform managed
gcloud config set run/region europe-west4
```
### Deploy:
[gcloud beta run deploy](https://cloud.google.com/sdk/gcloud/reference/beta/run/deploy)
```shell
gcloud beta run deploy CONTAINER-NAME \
--source=. \ # can use $PWD or . for current dir
--project=PROJECT-NAME \ # the Google Cloud project ID
--port=8080 \ # Container port to receive requests at. Also sets the $PORT environment variable.
--args='--port 8080,--concurrency=5' \ #
--set-env-vars \ #
--concurrency=5 \ #
--max-instances=3 \ #
--region=europe-west4 \ # ex: us-central1
--platform managed \ # for Cloud Run
--timeout=25s \ # Set the maximum request execution time (timeout).
--cpu=1 \ # Set a CPU limit in Kubernetes cpu units.
--memory=64Mi \ #
--no-use-http2 \ #
--connectivity=external \ #
--allow-unauthenticated # for public access
```