Nuxt 3 构建的个人网站
Tip
Node version >= 18
启动开发服务器: http://localhost:3000
# npm
npm install
npm run dev
# pnpm
pnpm install
pnpm run dev
# yarn
yarn install
yarn dev
构建用于生产的应用程序:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
# bun
bun run build
本地预览生产构建:
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview
# bun
bun run preview
# 构建镜像
docker build -t my-nuxt-app .
# 运行容器
docker run -d -p 3000:3000 --name my-running-nuxt-app my-nuxt-app
# 查看在运行的容器
docker ps
# 查看所有容器
docker ps -a
MIT © haohaitao