default deployment on web
This commit is contained in:
parent
fc847b4fbf
commit
767e3c412d
3 changed files with 13 additions and 8 deletions
13
Dockerfile
13
Dockerfile
|
|
@ -7,8 +7,13 @@ WORKDIR /app
|
|||
# Copy your custom SDK/framework files from the repo to the container
|
||||
COPY . .
|
||||
|
||||
# Ensure your custom dart scripts are executable (if applicable)
|
||||
# RUN chmod +x bin/your_custom_script.dart
|
||||
# Setup the app
|
||||
WORKDIR /app/NeonFramework-2/neon_framework/my_2nd_test_app
|
||||
RUN dart pub get
|
||||
|
||||
# This keeps the container running so the "Console" stays active
|
||||
CMD ["tail", "-f", "/dev/null"]
|
||||
# Run the app using the framework CLI
|
||||
# Framework CLI is at ../bin/neon.dart
|
||||
# App is at . (current workdir)
|
||||
# Command: dart ../bin/neon.dart run -t web --release
|
||||
|
||||
CMD ["dart", "run", "neon_framework:neon", "run", "-t", "web", "--release"]
|
||||
|
|
@ -10,4 +10,4 @@ environment:
|
|||
|
||||
dependencies:
|
||||
neon_framework:
|
||||
path: /Users/hamzaibrahim/Downloads/NeonFramework-latest-v1-2026-2/NeonFramework-2/neon_framework
|
||||
path: ..
|
||||
|
|
@ -22,8 +22,8 @@ class RunCommand extends Command<int> {
|
|||
'target',
|
||||
abbr: 't',
|
||||
help: 'Target platform.',
|
||||
allowed: ['android', 'ios'],
|
||||
defaultsTo: 'android',
|
||||
allowed: ['android', 'ios', 'web'],
|
||||
defaultsTo: 'web',
|
||||
);
|
||||
argParser.addOption(
|
||||
'device',
|
||||
|
|
@ -175,7 +175,7 @@ class RunCommand extends Command<int> {
|
|||
workingDirectory: project.rootPath,
|
||||
mode: ProcessStartMode.inheritStdio,
|
||||
environment: {
|
||||
'PORT': '8080', // Force 8080 for bridge compatibility
|
||||
'PORT': Platform.environment['PORT'] ?? '8080', // Use env PORT or default to 8080
|
||||
},
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue