From 9672bf1512be8b1eed796ab809bce865e74760f1 Mon Sep 17 00:00:00 2001 From: Pehesi97 Date: Thu, 26 Oct 2023 14:26:02 -0300 Subject: [PATCH] fix: reverting to default knative service port on frontend --- assets/docker/Dockerfile.frontend-js.tmpl | 4 +--- example/frontend-js/build/index.html | 14 ++++++++++++++ example/frontend-js/dist/index.js | 1 - src/cli/template_test.go | 4 +--- 4 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 example/frontend-js/build/index.html delete mode 100644 example/frontend-js/dist/index.js diff --git a/assets/docker/Dockerfile.frontend-js.tmpl b/assets/docker/Dockerfile.frontend-js.tmpl index a6911f6..ea99ce7 100644 --- a/assets/docker/Dockerfile.frontend-js.tmpl +++ b/assets/docker/Dockerfile.frontend-js.tmpl @@ -19,8 +19,6 @@ COPY --from=build-env /app /app WORKDIR /app -EXPOSE 3000 - USER node -CMD npx http-server -p 3000 ./build +CMD npx http-server -p 8080 ./build diff --git a/example/frontend-js/build/index.html b/example/frontend-js/build/index.html new file mode 100644 index 0000000..ee7a0cd --- /dev/null +++ b/example/frontend-js/build/index.html @@ -0,0 +1,14 @@ + + + + + + + Initium Frontend Sample + + + + Welcome to Initium! + + + diff --git a/example/frontend-js/dist/index.js b/example/frontend-js/dist/index.js deleted file mode 100644 index 98551b6..0000000 --- a/example/frontend-js/dist/index.js +++ /dev/null @@ -1 +0,0 @@ -console.log('index') diff --git a/src/cli/template_test.go b/src/cli/template_test.go index 74cf924..7400856 100644 --- a/src/cli/template_test.go +++ b/src/cli/template_test.go @@ -74,11 +74,9 @@ COPY --from=build-env /app /app WORKDIR /app -EXPOSE 3000 - USER node -CMD npx http-server -p 3000 ./build +CMD npx http-server -p 8080 ./build `