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 your custom SDK/framework files from the repo to the container
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Ensure your custom dart scripts are executable (if applicable)
|
# Setup the app
|
||||||
# RUN chmod +x bin/your_custom_script.dart
|
WORKDIR /app/NeonFramework-2/neon_framework/my_2nd_test_app
|
||||||
|
RUN dart pub get
|
||||||
|
|
||||||
# This keeps the container running so the "Console" stays active
|
# Run the app using the framework CLI
|
||||||
CMD ["tail", "-f", "/dev/null"]
|
# 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:
|
dependencies:
|
||||||
neon_framework:
|
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',
|
'target',
|
||||||
abbr: 't',
|
abbr: 't',
|
||||||
help: 'Target platform.',
|
help: 'Target platform.',
|
||||||
allowed: ['android', 'ios'],
|
allowed: ['android', 'ios', 'web'],
|
||||||
defaultsTo: 'android',
|
defaultsTo: 'web',
|
||||||
);
|
);
|
||||||
argParser.addOption(
|
argParser.addOption(
|
||||||
'device',
|
'device',
|
||||||
|
|
@ -175,7 +175,7 @@ class RunCommand extends Command<int> {
|
||||||
workingDirectory: project.rootPath,
|
workingDirectory: project.rootPath,
|
||||||
mode: ProcessStartMode.inheritStdio,
|
mode: ProcessStartMode.inheritStdio,
|
||||||
environment: {
|
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