Deployment
Connect a GitHub, GitLab, or Bitbucket repository to your application. Every push to your chosen branch triggers an automatic deployment.
Before you start
Open your application, then click the "Git" or "Deployment" tab.
Enter the SSH URL of your repository (e.g. git@github.com:username/myrepo.git). Use the SSH URL, not the HTTPS URL — DeployFly connects using an SSH deploy key.
DeployFly shows a generated SSH public key. Copy it, then go to your repository Settings → Deploy Keys → Add Key. Paste the key and give it a name like "DeployFly".
Enter the branch name to deploy from (e.g. main or production). Only pushes to this branch trigger a deployment.
Enter shell commands to run after each pull, such as composer install, npm run build, or php artisan migrate. These run in the app's document root.
composer install --no-dev --optimize-autoloader php artisan migrate --force php artisan config:cache php artisan route:cache
Click "Connect Repository". DeployFly clones the repo and runs an initial deployment. Check the deployment log to confirm it succeeded.
Copy the webhook URL shown in DeployFly. Go to your repository Settings → Webhooks → Add webhook. Paste the URL, select "Just the push event", and save.
Watch out
Tips