Skip to content

Commit

Permalink
fix: reverting to default knative service port on frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Pehesi97 committed Oct 26, 2023
1 parent 2ecb927 commit 9672bf1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
4 changes: 1 addition & 3 deletions assets/docker/Dockerfile.frontend-js.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions example/frontend-js/build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Initium Frontend Sample</title>
</head>

<body>
Welcome to Initium!
</body>

</html>
1 change: 0 additions & 1 deletion example/frontend-js/dist/index.js

This file was deleted.

4 changes: 1 addition & 3 deletions src/cli/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
`

Expand Down

0 comments on commit 9672bf1

Please sign in to comment.