From 8a8b1d4b6871a0f61fd749ca7c312669460af954 Mon Sep 17 00:00:00 2001 From: MangoPig Date: Tue, 9 Dec 2025 19:59:46 +0000 Subject: [PATCH] Changing port --- 00-Lesson-Site/docker-compose.yaml | 2 +- 00-Lesson-Site/frontend/Dockerfile | 6 ++-- 00-Lesson-Site/frontend/README.md | 44 +--------------------------- 00-Lesson-Site/frontend/package.json | 40 ++++++++++++------------- 4 files changed, 25 insertions(+), 67 deletions(-) diff --git a/00-Lesson-Site/docker-compose.yaml b/00-Lesson-Site/docker-compose.yaml index 6b82645..b6c5e59 100644 --- a/00-Lesson-Site/docker-compose.yaml +++ b/00-Lesson-Site/docker-compose.yaml @@ -19,7 +19,7 @@ services: context: ./frontend target: production ports: - - ${SERVER_FRONTEND_PORT}:3000 + - ${SERVER_FRONTEND_PORT}:5000 env_file: - .env profiles: diff --git a/00-Lesson-Site/frontend/Dockerfile b/00-Lesson-Site/frontend/Dockerfile index b59fe3a..a039909 100644 --- a/00-Lesson-Site/frontend/Dockerfile +++ b/00-Lesson-Site/frontend/Dockerfile @@ -37,7 +37,7 @@ RUN npm install -g serve COPY --from=build /app/dist ./dist COPY serve.json ./dist -# Expose the port you want for production (e.g., 3000 or 80) -EXPOSE 3000 +# Expose the port you want for production (e.g., 3000) +EXPOSE 5000 -CMD ["serve", "dist", "-l", "3000", "--config", "serve.json"] \ No newline at end of file +CMD ["serve", "dist", "-l", "5000", "--config", "serve.json"] \ No newline at end of file diff --git a/00-Lesson-Site/frontend/README.md b/00-Lesson-Site/frontend/README.md index 87b813a..792d600 100644 --- a/00-Lesson-Site/frontend/README.md +++ b/00-Lesson-Site/frontend/README.md @@ -1,43 +1 @@ -# Astro Starter Kit: Minimal - -```sh -npm create astro@latest -- --template minimal -``` - -> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun! - -## 🚀 Project Structure - -Inside of your Astro project, you'll see the following folders and files: - -```text -/ -├── public/ -├── src/ -│ └── pages/ -│ └── index.astro -└── package.json -``` - -Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. - -There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. - -Any static assets, like images, can be placed in the `public/` directory. - -## 🧞 Commands - -All commands are run from the root of the project, from a terminal: - -| Command | Action | -| :------------------------ | :----------------------------------------------- | -| `npm install` | Installs dependencies | -| `npm run dev` | Starts local dev server at `localhost:4321` | -| `npm run build` | Build your production site to `./dist/` | -| `npm run preview` | Preview your build locally, before deploying | -| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | -| `npm run astro -- --help` | Get help using the Astro CLI | - -## 👀 Want to learn more? - -Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). +# diff --git a/00-Lesson-Site/frontend/package.json b/00-Lesson-Site/frontend/package.json index 4c6cc78..880a4ea 100644 --- a/00-Lesson-Site/frontend/package.json +++ b/00-Lesson-Site/frontend/package.json @@ -1,22 +1,22 @@ { - "name": "web-dev", - "type": "module", - "version": "0.0.1", - "scripts": { - "dev": "astro dev", - "build": "astro build", - "preview": "astro preview", - "astro": "astro" - }, - "dependencies": { - "@astrojs/mdx": "^4.3.12", - "@astrojs/solid-js": "^5.1.3", - "astro": "^5.16.4", - "astro-expressive-code": "^0.41.3", - "serve": "^14.2.5", - "solid-js": "^1.9.10" - }, - "devDependencies": { - "sass": "^1.94.2" - } + "name": "web-dev", + "type": "module", + "version": "0.0.1", + "scripts": { + "dev": "astro dev", + "build": "astro build", + "preview": "astro preview", + "astro": "astro" + }, + "dependencies": { + "@astrojs/mdx": "^4.3.12", + "@astrojs/solid-js": "^5.1.3", + "astro": "^5.16.4", + "astro-expressive-code": "^0.41.3", + "serve": "^14.2.5", + "solid-js": "^1.9.10" + }, + "devDependencies": { + "sass": "^1.94.2" + } }