diff --git a/Dockerfile b/Dockerfile index d5d555c..4d5cdeb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ # This project by default uses pnpm. # If you wish to use npm, delete "pnpm-lock.yaml" first. -# 1. pnpm (or npm) i # If you get gnu problems, use --force +# 1. pnpm (or npm) i # If you get GNU problems, use pnpm (or npm) i --force # 2. pnpm (or npm) run build # Sit back while it compiles # 3. sudo docker build . -t myapp:latest (replace 'myapp' to whatever tag you wanna give your image) @@ -13,7 +13,7 @@ # Now you just need to create the container # Here is an example command for creating a container -# sudo docker run -d --name myappcontainer --network host -e PORT=3001 myapp:latest +# sudo docker run -d --name myappcontainer --network host -e PORT=3000 myapp:latest FROM node:22-alpine WORKDIR /app diff --git a/README.md b/README.md index 25b5821..881b8f2 100644 --- a/README.md +++ b/README.md @@ -7,69 +7,37 @@ Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduct Make sure to install dependencies: ```bash -# npm -npm install - -# pnpm +npm i -g pnpm # (updates your pnpm :D) pnpm install - -# yarn -yarn install - -# bun -bun install ``` +(this project uses PNPM) ## Development Server Start the development server on `http://localhost:3000`: ```bash -# npm -npm run dev - -# pnpm pnpm dev - -# yarn -yarn dev - -# bun -bun run dev ``` -## Production - -Build the application for production: +## Deployment ```bash -# npm -npm run build - -# pnpm pnpm build - -# yarn -yarn build - -# bun -bun run build ``` Locally preview production build: ```bash -# npm -npm run preview - -# pnpm pnpm preview - -# yarn -yarn preview - -# bun -bun run preview ``` +Start the production server +```bash +node .output/server/index.mjs +``` + +### Check out the docker file to turn your app into a container for easy deployment! + + Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.