Changing port
This commit is contained in:
parent
6333829715
commit
8a8b1d4b68
@ -19,7 +19,7 @@ services:
|
|||||||
context: ./frontend
|
context: ./frontend
|
||||||
target: production
|
target: production
|
||||||
ports:
|
ports:
|
||||||
- ${SERVER_FRONTEND_PORT}:3000
|
- ${SERVER_FRONTEND_PORT}:5000
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
profiles:
|
profiles:
|
||||||
|
|||||||
@ -37,7 +37,7 @@ RUN npm install -g serve
|
|||||||
COPY --from=build /app/dist ./dist
|
COPY --from=build /app/dist ./dist
|
||||||
COPY serve.json ./dist
|
COPY serve.json ./dist
|
||||||
|
|
||||||
# Expose the port you want for production (e.g., 3000 or 80)
|
# Expose the port you want for production (e.g., 3000)
|
||||||
EXPOSE 3000
|
EXPOSE 5000
|
||||||
|
|
||||||
CMD ["serve", "dist", "-l", "3000", "--config", "serve.json"]
|
CMD ["serve", "dist", "-l", "5000", "--config", "serve.json"]
|
||||||
@ -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).
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user