Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action fails on Non EE setup #29

Closed
dhsathiya opened this issue Oct 19, 2021 · 0 comments · Fixed by #30
Closed

Action fails on Non EE setup #29

dhsathiya opened this issue Oct 19, 2021 · 0 comments · Fixed by #30

Comments

@dhsathiya
Copy link
Member

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>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant