Skip to content

Deploy to the Roomie droplet - #3

Open
Mihilih wants to merge 1 commit into
mainfrom
deploy-setup
Open

Mihilih wants to merge 1 commit into
mainfrom
deploy-setup

Conversation

@Mihilih

@Mihilih Mihilih commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Overview

Sets up the dev deploy to the Roomie droplet (142.93.246.176), so every push to the deploy branch builds the image and restarts the app on the server.

Changes Made

  • docker-compose.yml: adds name: roomie-dev, so the Compose project name doesn't depend on the folder it runs from.
  • docker-compose.yml: binds the app to 127.0.0.1:8010 instead of exposing it publicly. nginx on the droplet handles HTTPS and forwards requests to it. The container still listens on 8000.
  • deploy-dev.yml: turns on the push trigger for mvp-features, the branch with all the MVP features, and keeps the manual "Run workflow" button.
  • deploy-dev.yml: replaces down → sleep 20 → up with pull → up -d, so a deploy swaps the container in a few seconds instead of taking the API offline for about 30 seconds.
  • deploy-dev.yml: replaces docker system prune -a with a cleanup that only removes old roomie-dev images and keeps the 3 newest for rollback.

Test Coverage

  • No app code changes, so npm test is unaffected.
  • Deploy tested by running the workflow on mvp-features: the container starts, and /health returns "status":"healthy" and "database":"connected" over HTTPS.

Next Steps

  • Switch the push trigger from mvp-features to main once the feature PRs merge.
  • Set up the Firebase project and add its service account key to the droplet, so Google sign-in works on the deployed server.
  • Move from the temporary sslip.io address to a real AppDev subdomain.

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fa64d868-268c-4064-9eed-3f18f3f6b607
Commits

Reviewing files that changed from the base of the PR and between 6dc68da and 7fa7ece.

Files selected for processing: 2

  • .github/workflows/deploy-dev.yml
  • docker-compose.yml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant