You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GCP allows sidecar images. The ingress image must handle requests on 8080, so that port is reserved.
My sidecar image needs a liveness probe.
It can't also run on 8080.
So, I want to be able to call dart_frog build -p 8181.
Looks like the main function reads from Platform.environment already.
voidmain() async {
final address =InternetAddress.anyIPv6;
final port =int.tryParse(Platform.environment['PORT'] ??'8080') ??8080;
createServer(address, port);
}
The easiest solution is for the build command handler to set the PORT variable.
IIUC another solution would be to do it in the Dockerfile.
Another (not preferred IMO) is to modify the generated server.dart code.
Requirements
dart_frog build -p <port> runs the server on a port.
The text was updated successfully, but these errors were encountered:
Description
GCP allows sidecar images. The ingress image must handle requests on 8080, so that port is reserved.
My sidecar image needs a liveness probe.
It can't also run on 8080.
So, I want to be able to call
dart_frog build -p 8181
.Looks like the main function reads from
Platform.environment
already.The easiest solution is for the
build
command handler to set the PORT variable.IIUC another solution would be to do it in the Dockerfile.
Another (not preferred IMO) is to modify the generated
server.dart
code.Requirements
dart_frog build -p <port>
runs the server on a port.The text was updated successfully, but these errors were encountered: