BIENVENUE10valid for the first month only! on all offersView plans
Skip to content
← Knowledge base

Deploy a Dart application on onesubnet

Deploy a Dart backend (shelf / dart_frog): dependencies, run, port and environment variables.

Deploy a Dart application on onesubnet

onesubnet runs your Dart backends (shelf, dart_frog, custom servers). Deploy via Git.

1. Prepare the project

  • A pubspec.yaml at the root.
  • Listen on the port from the PORT variable:
final port = int.parse(Platform.environment['PORT'] ?? '8080');
final handler = (Request request) => Response.ok('Hello from Dart');
await serve(handler, InternetAddress.anyIPv4, port);

2. Deploy

  1. Connect your Git repository in the panel.
  2. Build command: dart pub get
  3. Start command: dart run bin/server.dart (or dart_frog dev / dart_frog prod).

3. Environment variables

In Settings → Environment. Access via Platform.environment['...'].

4. Logs

Live console in the panel.

References

Related products

oneSubnet

French hosting provider in Paris. High-performance game and voice servers.

SERVICES

Resources

LEGAL

All systems operational