This repo now includes a basic CI/CD pipeline for GitHub → EC2 deployment.
Current frontend URL on Netlify: https://salomyangi.netlify.app/
- GitHub Actions validates backend syntax on every push to
main - The same workflow deploys the
backend/,frontend/, andscripts/folders to your EC2 instance - The EC2 deploy script installs Python dependencies, restarts the FastAPI service, and reloads Nginx
Create these repository secrets in GitHub:
EC2_HOST: your EC2 public IP or DNS nameEC2_USER: the SSH user (usuallyubuntu)EC2_SSH_KEY: the private SSH key for the EC2 instanceNETLIFY_AUTH_TOKEN: your Netlify personal access tokenNETLIFY_SITE_ID: your Netlify site ID
- In Netlify, open User settings → Applications → Personal access tokens
- Create a token and copy it as
NETLIFY_AUTH_TOKEN - Open your site → Site settings → General → Site details
- Copy the Site ID and save it as
NETLIFY_SITE_ID
Push to main and GitHub Actions will run automatically.
You can also run the workflow manually from the Actions tab.
Use these DNS records for the live custom domain setup:
@→Arecord →75.2.60.5(orALIAS/ANAMEtoapex-loadbalancer.netlify.comif your registrar supports it)www→CNAMErecord →salomyangi.netlify.app.api→Arecord → your EC2 public IP
This lets you expose:
https://api.onxxdatas.spacefor the FastAPI backendhttps://onxxdatas.space(orhttps://www.onxxdatas.space) for the Netlify frontend
After changing DNS, wait 5–30 minutes for propagation, then add the custom domain in Netlify → Site settings → Domain management.