Look at the Nuxt 3 documentation to learn more.
- Add the following to
cicipu.stuartmcgill.conf:
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
Installation using pm2:
# Install pm2 globally
npm install pm2 -gThis could run out of memory though.
# Install and build website in-situ
npm ci
npm run build
npm install --omit=dev# Install and build website locally
npm ci
npm run build
# Copy the files to the server
rsync -avz --delete -e "ssh -p <PORT>" .output/ <USERNAME>@stuartmcgill.org:~/domains/cicipu.stuartmcgill.org/cicipu-main/.outputThen on the server:
npm install --omit=dev# This should start the app and also handle restarts
pm2 reload cicipu-mainSee also https://nuxt.com/docs/getting-started/deployment#pm2.
Start the database:
docker-compose up -dInstall the dependencies:
# npm
npm ci && npm run buildStart the development server on http://localhost:3000:
# npm
npm run dev# npm
npm run previewCheck out the deployment documentation for more information.