Skip to content

Command "deploy" is not defined. despite including custom recipe #3153

@sts-ryan-holton

Description

@sts-ryan-holton
  • Deployer version: 7.0.0-rc.8
  • Deployment OS: Centos 8 Stream

I'm getting the following error:

Command "deploy" is not defined.

Even though I'm including the common recipe?

<?php

namespace Deployer;

require 'recipe/common.php';
require 'deploy/recipe/sts-composer.php';
require 'deploy/recipe/sts-npm.php';
require 'deploy/recipe/sts-nuxt.php';

// Project repository
set('repository', 'git@github.com:stsonline/les-warehouse-gui.git');

// Shared files/dirs between deploys
add('shared_files', ['.env']);

// Set number of releases to keep
set('keep_releases', 2);

// Writable dirs by web server
set('allow_anonymous_stats', false);

// Site: LES Warehouse GUI (Nuxt JS)
host('2001:b98:301:1d00::a:90')
    ->set('labels', ['stage' => 'production'])
    ->set('repository', 'git@warehouse-gui:stsonline/les-warehouse-gui')
    ->set('branch', 'main')
    ->set('remote_user', 'root')
    ->set('deploy_path', '/var/www/warehouse-gui');

// Custom tasks
after('deploy:update_code', 'npm:install');
after('npm:install', 'composer:install');
after('deploy:writable', 'nuxt:generate');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions