Skip to content

Add GitHub Actions CI/CD pipeline for AlwaysData deployment - #51

Merged
bcaure merged 3 commits into
masterfrom
cursor/github-actions-deploy-f325
Jul 19, 2026
Merged

Add GitHub Actions CI/CD pipeline for AlwaysData deployment#51
bcaure merged 3 commits into
masterfrom
cursor/github-actions-deploy-f325

Conversation

@bcaure

@bcaure bcaure commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a deploy-only GitHub Actions pipeline for AlwaysData via SSH/rsync.

  • Deploy (on push to master): build frontend, rsync backend + node_modules and frontend dist/ over SSH, restart Node.js site via AlwaysData API

Key details

  • Backend deploy preserves server-side back/.env and back/.htaccess (rsync excludes)
  • Frontend ships front/public/.htaccess for SPA routing (API proxy rule is commented — set your Node.js internal port)

Required GitHub secrets

Secret Description
ALWAYSDATA_SSH_PRIVATE_KEY SSH private key
ALWAYSDATA_SSH_USER SSH account name
ALWAYSDATA_API_KEY AlwaysData API key
ALWAYSDATA_ACCOUNT Account name
ALWAYSDATA_API_PASSWORD Account password
ALWAYSDATA_BACKEND_SITE_ID Node.js backend site ID

Setup checklist

  1. Generate an SSH key pair; add the public key in AlwaysData → Remote access → SSH keys
  2. Add all secrets listed above in GitHub → Settings → Secrets
  3. Uncomment and configure the API proxy line in front/public/.htaccess with your Node.js internal port
Open in Web Open in Cursor 

cursoragent and others added 3 commits July 19, 2026 15:16
- CI: unit tests, production build, API integration, Playwright E2E
- Deploy: rsync backend (with node_modules) and frontend dist over SSH
- Preserve server-side back/.env and back/.htaccess during deploy
- Restart Node.js site via AlwaysData API after backend deploy
- Add front/public/.htaccess for SPA routing (API proxy commented)
- Add CI-friendly MariaDB setup scripts for GitHub Actions service container

Co-authored-by: Benjamin Caure <bcaure@users.noreply.github.com>
Co-authored-by: Benjamin Caure <bcaure@users.noreply.github.com>
- Keep only .env and .htaccess excludes (server-side files that exist)
- Remove setup-ci-db.sh and restore reset-test-db.sh to local-only version

Co-authored-by: Benjamin Caure <bcaure@users.noreply.github.com>
@bcaure
bcaure marked this pull request as ready for review July 19, 2026 15:44
@bcaure
bcaure merged commit 3b88957 into master Jul 19, 2026
1 check passed
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.

2 participants