Instruction file imported from ozahirnyi/movie_finder (
.cursor/rules/deploy-production-manual.mdc). Copyright stays with the author.
Production deploy
CI/CD deploy does not work at the moment. Do not rely on CodeDeploy or GitHub Actions for production updates.
When changes need to be on production (after push to main or when the user asks to deploy):
- Update prod yourself via SSH to the Lightsail instance: pull latest code, then rebuild/restart as needed.
- Use the steps in .cursor/skills/connect-to-lightsail-instance/SKILL.md under "Manual deploy (use while CI is broken)".
- Always stop Grafana first (frees RAM): run
docker-compose -f ... -f docker-compose.monitoring.yml downthendocker-compose -f docker-compose.lightsail.yml up -dbefore doing pull/rebuild. On 512 MB, run onlydocker-compose.lightsail.ymlfor allup -d. - After an instance reboot, run the “Stop monitoring” command from the skill first so Grafana does not start and fill memory, then proceed with deploy steps.
- When the user reports an error, try to SSH and run the Error logs command from the same skill; Docker keeps logs until rotation so recent errors are usually still there.
Connection: ssh -i "o:\projects\movie_finder\LightsailDefaultKey-eu-central-1.pem" -o StrictHostKeyChecking=accept-new ec2-user@3.75.113.52 (host may change).