Skip to content

Latest commit

 

History

History

README.md

A simple Dart HTTP server using package:shelf.

  • Listens on "any IP" (0.0.0.0) instead of loop-back (localhost, 127.0.0.1) to allow remote connections.
  • Defaults to listening on port 8080, but this can be configured by setting the PORT environment variable. (This is also the convention used by Cloud Run.)
  • Includes Dockerfile for easy containerization

Run locally

To run this server locally, run as follows:

$ dart run bin/server.dart

Deploy to Google Cloud Run

With Docker

To deploy on Cloud Run, click

Run on Google Cloud

or follow these instructions.

With OS-only runtime

Use tool/deploy_source.sh to build and deploy using the OS-only runtimes feature.

Note

As of January 2026, this feature is in "Preview" and requires the ["beta" gcloud component][gcloud-beta].