From 2f4552515ae18e82ee662e7fba02f85aa15a2eb4 Mon Sep 17 00:00:00 2001 From: "Zamrony P. Juhara" Date: Sat, 30 Jul 2022 10:24:17 +0700 Subject: [PATCH 1/2] Create FUNDING.yml --- .github/FUNDING.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..d269220 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# These are supported funding model platforms + +github: [zamronypj] From d85fea5803af1991e83235d092025a0306129a6c Mon Sep 17 00:00:00 2001 From: "Zamrony P. Juhara" Date: Fri, 24 Mar 2023 13:57:48 +0700 Subject: [PATCH 2/2] Make MwExecDispatcher default for application with middleware - also improve generated dockerfile for Fano application --- .../Middleware/Support/Includes/buildDispatcher.impl.inc | 2 +- .../Project/FastCgi/Includes/fano_dockerfile.inc | 3 +++ .../Implementations/Project/Scgi/Includes/fano_dockerfile.inc | 3 +++ .../Implementations/Project/Uwsgi/Includes/fano_dockerfile.inc | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Tasks/Implementations/Middleware/Support/Includes/buildDispatcher.impl.inc b/src/Tasks/Implementations/Middleware/Support/Includes/buildDispatcher.impl.inc index 2276778..f537bee 100644 --- a/src/Tasks/Implementations/Middleware/Support/Includes/buildDispatcher.impl.inc +++ b/src/Tasks/Implementations/Middleware/Support/Includes/buildDispatcher.impl.inc @@ -16,7 +16,7 @@ strBuildDispatcherImpl : string = '' + LineEnding + ' container.add(' + LineEnding + ' GuidToString(IDispatcher),' + LineEnding + - ' TDispatcherFactory.create(' + LineEnding + + ' TMwExecDispatcherFactory.create(' + LineEnding + ' container[''appMiddlewares''] as IMiddlewareLinkList,' + LineEnding + ' routeMatcher,' + LineEnding + ' TRequestResponseFactory.create()' + LineEnding + diff --git a/src/Tasks/Implementations/Project/FastCgi/Includes/fano_dockerfile.inc b/src/Tasks/Implementations/Project/FastCgi/Includes/fano_dockerfile.inc index 5b1d35d..2e00f2e 100644 --- a/src/Tasks/Implementations/Project/FastCgi/Includes/fano_dockerfile.inc +++ b/src/Tasks/Implementations/Project/FastCgi/Includes/fano_dockerfile.inc @@ -14,5 +14,8 @@ strDockerfile : string = '' + LineEnding + 'COPY ./config/ /usr/local/fano/config' + LineEnding + 'COPY ./resources/ /usr/local/fano/resources' + LineEnding + + 'COPY ./storages/ /usr/local/fano/storages' + LineEnding + + 'COPY ./public/ /usr/local/fano/public' + LineEnding + 'COPY ./bin/app.cgi /usr/local/fano/app.cgi' + LineEnding + + 'WORKDIR /usr/local/fano/' + LineEnding + 'CMD ["/usr/local/fano/app.cgi", "--host=0.0.0.0", "--port=7704"]' + LineEnding; diff --git a/src/Tasks/Implementations/Project/Scgi/Includes/fano_dockerfile.inc b/src/Tasks/Implementations/Project/Scgi/Includes/fano_dockerfile.inc index 5b1d35d..2e00f2e 100644 --- a/src/Tasks/Implementations/Project/Scgi/Includes/fano_dockerfile.inc +++ b/src/Tasks/Implementations/Project/Scgi/Includes/fano_dockerfile.inc @@ -14,5 +14,8 @@ strDockerfile : string = '' + LineEnding + 'COPY ./config/ /usr/local/fano/config' + LineEnding + 'COPY ./resources/ /usr/local/fano/resources' + LineEnding + + 'COPY ./storages/ /usr/local/fano/storages' + LineEnding + + 'COPY ./public/ /usr/local/fano/public' + LineEnding + 'COPY ./bin/app.cgi /usr/local/fano/app.cgi' + LineEnding + + 'WORKDIR /usr/local/fano/' + LineEnding + 'CMD ["/usr/local/fano/app.cgi", "--host=0.0.0.0", "--port=7704"]' + LineEnding; diff --git a/src/Tasks/Implementations/Project/Uwsgi/Includes/fano_dockerfile.inc b/src/Tasks/Implementations/Project/Uwsgi/Includes/fano_dockerfile.inc index 5b1d35d..2e00f2e 100644 --- a/src/Tasks/Implementations/Project/Uwsgi/Includes/fano_dockerfile.inc +++ b/src/Tasks/Implementations/Project/Uwsgi/Includes/fano_dockerfile.inc @@ -14,5 +14,8 @@ strDockerfile : string = '' + LineEnding + 'COPY ./config/ /usr/local/fano/config' + LineEnding + 'COPY ./resources/ /usr/local/fano/resources' + LineEnding + + 'COPY ./storages/ /usr/local/fano/storages' + LineEnding + + 'COPY ./public/ /usr/local/fano/public' + LineEnding + 'COPY ./bin/app.cgi /usr/local/fano/app.cgi' + LineEnding + + 'WORKDIR /usr/local/fano/' + LineEnding + 'CMD ["/usr/local/fano/app.cgi", "--host=0.0.0.0", "--port=7704"]' + LineEnding;