Skip to content

chore: P1 - stage.dzcode.io to new more powerful VPS #654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

ZibanPirate
Copy link
Member

@ZibanPirate ZibanPirate commented Apr 26, 2025

this is part one of the migration:

  • removed ./web/cloudflare workspace
  • created a new workspace ./web-server: express server with Open-Graph functionalities
  • update CD workflows to deploy frontend (./web and ./web-server) to cluster (example run)
  • Removed lighthouse job from CD

Next steps:

End goal

before:

  • two cheap vps to deploy ./api, one for each environement
  • two page apps in cloudflare to deploy ./web
  • two cloudflare workers to handle SEO URLs
  • SSL done through Cloudflare proxy (limited to one subdomain level, so can't do SSL for api.stage.dzcode.io, we had to rename it to api-stage.dzcode.io)

after:
we only ever need one VPS (zcluster; basically a VPS with a Rust server that handles infra stuff, you connect to via zcluster cli app)
Inside it we can define as many containers as we want, so:

  • docker container for ./api (including postgress and meilisearch containers)
  • docker container for ./web (also handles SEO)

a nice bonus, is we already have grafana monitoring setup for this server, so we can even replace/remove the analytics tools we have:

  • sentry on ./api
  • sentry on ./web
  • Google Analytics on ./web
  • lighthouse-ci on ./web

change:

  • Bug fix
  • New feature
  • Other

@github-actions github-actions bot added data Data related changes ( data folder ) web Web related changes ( web folder ) api API related changes ( api folder ) models models package utils utils package tooling tooling package labels Apr 26, 2025
@github-actions github-actions bot added the repo label Apr 27, 2025
@ZibanPirate ZibanPirate changed the title chore: deploy to new more powerful VPS chore: P1 - deploy frontend stage to new more powerful VPS Apr 27, 2025
@ZibanPirate ZibanPirate changed the title chore: P1 - deploy frontend stage to new more powerful VPS chore: P1 - stage.dzcode.io to new more powerful VPS Apr 27, 2025
@ZibanPirate ZibanPirate marked this pull request as ready for review April 27, 2025 12:17
@ZibanPirate ZibanPirate requested a review from a team April 27, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api API related changes ( api folder ) data Data related changes ( data folder ) models models package repo tooling tooling package utils utils package web Web related changes ( web folder )
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant