Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

325 B
Raw Blame
<?php

namespace App\Enums;

enum ServerRole: string
{
    case DEPLOYMENT = 'deployment';
    case BUILD = 'build';
    case BOTH = 'both';

    public function canBuild(): bool
    {
        return $this !== self::DEPLOYMENT;
    }

    public function canDeploy(): bool
    {
        return $this !== self::BUILD;
    }
}