Skip to content

Action fails on Non EE setup #29

Closed
@dhsathiya

Description

@dhsathiya

Need to update https://github.com/rtCamp/action-deploy-wordpress/blob/master/deploy.php#L79 and https://github.com/rtCamp/action-deploy-wordpress/blob/master/deploy.php#L101

Solution

	try {
		$ee_version = run('ee --version');
	} catch(\Exception $e) {
    		echo 'NOT USING EE';
	}

logs

✔ Ok
➤ Executing task deploy:unlock
✔ Ok
➤ Executing task deploy:lock
✔ Ok
➤ Executing task deploy:release
✔ Ok
➤ Executing task rsync
✔ Ok
➤ Executing task wp:config
✔ Ok
➤ Executing task cachetool:download
✔ Ok
➤ Executing task deploy:shared
✔ Ok
➤ Executing task deploy:symlink
✔ Ok
➤ Executing task permissions:set

✔ Ok
➤ Executing task opcache:reset
➤ Executing task deploy:failed
✔ Ok

In Client.php line 103:
                                       
  The command "ee --version" failed.   
                                       
  Exit Code: 127 (Command not found)   
                                       
  Host Name: main                      
                                       
  ================                     
  bash: line 1: ee: command not found  
                                       

deploy [-p|--parallel] [-l|--limit LIMIT] [--no-hooks] [--log LOG] [--roles ROLES] [--hosts HOSTS] [-o|--option OPTION] [--] [<stage>]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions