Updating and Troubleshooting
Updating an existing deployment
nssm stop MyApp
# Copy the contents of web\.next\standalone\ into C:\apps\my-app\,
# then copy web\.next\static\ into C:\apps\my-app\.next\static\
# and web\public\ into C:\apps\my-app\public\.
nssm start MyAppsudo systemctl stop my-app
sudo rsync -a --delete /tmp/new-build/ /opt/my-app/
sudo systemctl start my-appdocker build \
--build-arg NEXT_PUBLIC_API_BASE_URL="https://api.example.com" \
-t my-app:latest ./web
docker stop my-app && docker rm my-app
docker run -d --name my-app -p 3000:3000 --env-file ./web/.env.production --restart unless-stopped my-app:latestTroubleshooting
Symptom
Likely cause
Last updated
Was this helpful?