Skip to content

Conversation

thortve
Copy link
Member

@thortve thortve commented Oct 15, 2026

After the checks pass on a push to main, the CI job copies the built frontend to /var/www/html/project2, installs the built backend with its production dependencies in /srv/ufound-it and restarts the ufound-it-backend systemd service. It then calls the health query through Apache and fails if the backend does not answer.

The backend runs outside the runner's work folder because the next CI run wipes it. Runs on main are no longer cancelled, so a deploy is not stopped halfway. Pull requests still stop after the checks.

The service, sudoers rule and Apache proxy are in deploy/, and the one-time VM setup is documented in docs/ci-cd.md. AGENTS.md now has the VM address and how deploying works.

Closes #68

After the checks pass on a push to main, the CI job copies the built
frontend to /var/www/html/project2, installs the built backend with its
production dependencies in /srv/ufound-it and restarts the
ufound-it-backend systemd service. It then calls the health query
through Apache and fails if the backend does not answer.

The backend runs outside the runner's work folder because the next CI
run wipes it. Runs on main are no longer cancelled, so a deploy is not
stopped halfway. Pull requests still stop after the checks.

The service, sudoers rule and Apache proxy are in deploy/, and the
one-time VM setup is documented in docs/ci-cd.md. AGENTS.md now has the
VM address and how deploying works.

Closes #68

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thortve thortve added this to the Partial submission 2 milestone Oct 15, 2026
@thortve thortve self-assigned this Oct 15, 2026
@thortve thortve requested a review from a team as a code owner October 15, 2026 08:38
Copy link
Member

@asgeija asgeija left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks good, well done thor

@thortve thortve merged commit b3c63b7 into main Oct 15, 2026
1 check passed
Sign in to join this conversation on GitHub.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deploy the built frontend and restart the backend on the VM after a merge to main
2 participants