Git deployment workflow
Developer Guides
The simplest way to deploy code updates is Git pull over SSH.
Initial setup
- SSH into your site:
ssh [siteuser]@yoursite-com.transpark.tech - Navigate to document root:
cd /home/[siteuser]/htdocs/[domain] - Clone your repo:
git clone https://github.com/you/repo.git .
Deploying updates
ssh [siteuser]@yoursite-com.transpark.tech cd /home/[siteuser]/htdocs/[domain] git pull origin main
Then run any post-deploy steps (e.g. composer install, npm install, php artisan migrate, pm2 restart).
Private repos (GitHub)
For private repos, generate an SSH key on the server:
ssh-keygen -t ed25519 -C "deploy@transpark" cat ~/.ssh/id_ed25519.pub
Add the public key as a Deploy Key in your GitHub repo settings (Settings → Deploy Keys → Add).
Then clone with SSH: git clone git@github.com:you/repo.git .
Automated deployment
For CI/CD, you can set up a GitHub Actions workflow that SSHs into the server and runs git pull on push to main. Contact support if you'd like help setting this up.