Skip to content

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.

  • GitHub — Public and private repositories
  • GitLab — Public and private repositories (including self-hosted GitLab)
  1. Create a new application in the Piora dashboard
  2. Select “Git Repository” as the deployment source
  3. Authorize Piora to access your GitHub / GitLab account
  4. Choose the repository and branch to deploy
  5. Configure build settings (auto-detection works in most cases)

Piora’s Nixpacks build tool automatically detects most project languages and frameworks:

Language/FrameworkDetection
Node.jspackage.json
Pythonrequirements.txt / Pipfile / pyproject.toml
RubyGemfile
Gogo.mod
RustCargo.toml
PHPcomposer.json
Javapom.xml / build.gradle

If auto-detection doesn’t fit your needs, you can manually configure:

Terminal window
# Build command
npm run build
# Start command
npm start
# Install command (optional)
npm ci --production

If your project root contains a Dockerfile, you can choose to build with it:

FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
EXPOSE 3000
CMD ["node", "dist/index.js"]

By default, every git push to the specified branch automatically triggers a deployment:

Terminal window
# Pushing to main branch triggers automatic deployment
git push origin main

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 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

If you discover issues after deployment, you can quickly roll back to a previous version:

  1. Go to the application’s “Deployment History” page
  2. Select the version to roll back to
  3. Click “Rollback to this version”

Piora retains recent deployment versions, allowing you to roll back at any time.