Serverpod's default device for a companion app is the web server, which Train doesn't build for, so the launch failed. The app is run by hand on the emulator or a phone with `flutter run -d <device> -t lib/driver.dart`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
name: halkyon_train_server
|
|
description: Halkyon Train's server.
|
|
publish_to: none
|
|
|
|
environment:
|
|
sdk: '^3.13.0'
|
|
|
|
resolution: workspace
|
|
|
|
dependencies:
|
|
clock: ^1.1.3
|
|
crypto: ^3.0.7
|
|
# What every Halkyon server has (ADR 0014): signing in, the account and its
|
|
# deletion, pruning, the instance's basics. A Serverpod module among the
|
|
# repository's shared packages.
|
|
halkyon_base_server:
|
|
path: ../../../packages/halkyon_base_server
|
|
serverpod: 4.0.4
|
|
serverpod_auth_idp_server: 4.0.4
|
|
serverpod_offline_sync_server: 0.0.10
|
|
|
|
dev_dependencies:
|
|
serverpod_test: 4.0.4
|
|
test: ^1.25.5
|
|
|
|
serverpod:
|
|
# Companion Flutter apps that `serverpod start` can launch (Ctrl+R), keyed
|
|
# by a display alias. The default device is the web server, opening the
|
|
# machine's default browser when ready. All non-reserved properties are
|
|
# forwarded to `flutter run`. For the best IDE debugging experience, use
|
|
# `chrome` or a native target as the device. See the example below:
|
|
#
|
|
# Admin:
|
|
# path: ../apps/admin_flutter
|
|
# displayName: "Admin app"
|
|
# auto_launch: true
|
|
# device: chrome
|
|
# target: lib/main.dart
|
|
# web-hostname: 0.0.0.0
|
|
# web-port: 8090
|
|
# release: true
|
|
# pub: false
|
|
# dart-define:
|
|
# API_URL=https://admin.example.com
|
|
# FLAVOR=production
|
|
flutter_apps:
|
|
halkyon_train:
|
|
path: ../halkyon_train_flutter
|
|
displayName: "Halkyon Train"
|
|
# Not launched with the server: its default device is the web server,
|
|
# which Train doesn't build for, and most of Train is Android's. Run it
|
|
# on a device with `flutter run -d <device> -t lib/driver.dart` from
|
|
# its folder.
|
|
auto_launch: false
|
|
target: lib/driver.dart
|