diff --git a/Dockerfile b/Dockerfile index f0119cf..b55fcf6 100644 --- a/Dockerfile +++ b/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"] \ No newline at end of file +# 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"] \ No newline at end of file diff --git a/NeonFramework-2/neon_framework/my_2nd_test_app/pubspec.yaml b/NeonFramework-2/neon_framework/my_2nd_test_app/pubspec.yaml index a03d371..6a6e073 100644 --- a/NeonFramework-2/neon_framework/my_2nd_test_app/pubspec.yaml +++ b/NeonFramework-2/neon_framework/my_2nd_test_app/pubspec.yaml @@ -10,4 +10,4 @@ environment: dependencies: neon_framework: - path: /Users/hamzaibrahim/Downloads/NeonFramework-latest-v1-2026-2/NeonFramework-2/neon_framework \ No newline at end of file + path: .. \ No newline at end of file diff --git a/NeonFramework-2/neon_framework/tool/tooling/command_run.dart b/NeonFramework-2/neon_framework/tool/tooling/command_run.dart index fb06a9b..54d549a 100644 --- a/NeonFramework-2/neon_framework/tool/tooling/command_run.dart +++ b/NeonFramework-2/neon_framework/tool/tooling/command_run.dart @@ -22,8 +22,8 @@ class RunCommand extends Command { '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 { 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 }, );