Git Deploy
Git deploy is the most common deployment method. Connect your GitHub or GitLab repository to Piora, and every code push automatically triggers a build and deployment.
Connect a Git Repository
Section titled “Connect a Git Repository”Supported Platforms
Section titled “Supported Platforms”- GitHub — Public and private repositories
- GitLab — Public and private repositories (including self-hosted GitLab)
Setup Steps
Section titled “Setup Steps”- Create a new application in the Piora dashboard
- Select “Git Repository” as the deployment source
- Authorize Piora to access your GitHub / GitLab account
- Choose the repository and branch to deploy
- Configure build settings (auto-detection works in most cases)
Build Configuration
Section titled “Build Configuration”Auto-Detection
Section titled “Auto-Detection”Piora’s Nixpacks build tool automatically detects most project languages and frameworks:
| Language/Framework | Detection |
|---|---|
| Node.js | package.json |
| Python | requirements.txt / Pipfile / pyproject.toml |
| Ruby | Gemfile |
| Go | go.mod |
| Rust | Cargo.toml |
| PHP | composer.json |
| Java | pom.xml / build.gradle |
Custom Build Commands
Section titled “Custom Build Commands”If auto-detection doesn’t fit your needs, you can manually configure:
# Build commandnpm run build
# Start commandnpm start
# Install command (optional)npm ci --productionUsing a Dockerfile
Section titled “Using a Dockerfile”If your project root contains a Dockerfile, you can choose to build with it:
FROM node:20-alpine AS builderWORKDIR /appCOPY package*.json ./RUN npm ciCOPY . .RUN npm run build
FROM node:20-alpineWORKDIR /appCOPY --from=builder /app/dist ./distCOPY --from=builder /app/node_modules ./node_modulesEXPOSE 3000CMD ["node", "dist/index.js"]Automatic Deployment
Section titled “Automatic Deployment”Push Trigger
Section titled “Push Trigger”By default, every git push to the specified branch automatically triggers a deployment:
# Pushing to main branch triggers automatic deploymentgit push origin mainWebhook Configuration
Section titled “Webhook Configuration”Piora automatically sets up a Webhook in your Git repository. If manual setup is needed, the Webhook URL format is:
https://app.piora.dev/api/webhook/git/{app-id}Build Logs
Section titled “Build Logs”Build logs for every deployment are available in the dashboard, including:
- Source code pull progress
- Dependency installation
- Build command output
- Image packaging information
- Deployment status and error messages
Rollback
Section titled “Rollback”If you discover issues after deployment, you can quickly roll back to a previous version:
- Go to the application’s “Deployment History” page
- Select the version to roll back to
- Click “Rollback to this version”
Piora retains recent deployment versions, allowing you to roll back at any time.