-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop #5
Develop #5
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated dev docker port and the command to run vite dev server
Dockerfile
Outdated
@@ -13,7 +13,7 @@ ENV GROUP_NAME=app | |||
ENV HOME=/app | |||
ENV GROUP_ID=11000 | |||
ENV USER_ID=11001 | |||
ENV PORT=8080 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
skal være 8080 når den deploys. Brug dockerfile.dev til dev ting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modtaget, bare sært at frontend udstilles på port 8080 her, og 3000 ellers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm run dev
laver en server og vite config filen sætter porten til 3000.
Men når det bygges med dockerfile til deployment, så er python/flask serveren og vue filerne bliver serveret her: https://github.com/Randers-Kommune-Digitalisering/vue-python-template/blob/develop/flask/src/main.py#L31-L37
Så der er kun én port. Men i dev er der to servere og defor to porte. Vite serveren tjekker efter fil-ændringer for vue filer og flask serveren er sat til debug i docker-compose og tjekker efter fil-ændringer for flask/python.
Håber det giver lidt mening 😅
Serve vue from python flask backend/server