Hi all,
Deploying a PHP app, when running 'composer install' in the server it fails:
This package requires php ^7.2.5 but your PHP version (5.6.22) does not satisfy that requirement.
My bitbucket-pipelines.yml:
image: php:7.4-fpm
...
- pipe: atlassian/ssh-run:0.2.5
variables: SSH_USER: $MY_USER
SERVER: $MY_SERVER
MODE: 'script'
COMMAND: './bitbucket-deploy.sh'
bitbucket-deploy.sh
#!/bin/bash
composer install -o
The server has php 7.4 installed. If I run composer install manually, it works.
Somehow the command is running in a wrong place and I need to execute it in the remote server.
Any tips?
Thanks