I am trying to run a terminal command "terminus site:list" but keep getting error when trying to use the Run Script action. I've read in other articles it's because the terminal doesn't load the user profile but I can not figure out how to set the $PATH variable in the workflow to make this command accessible.
I installed Terminus using composer so I created an alias in my .bash_profile that is "alias composer='php ~/composer.phar'" . I've also listed the rest of my .bash_profile below for reference.
How do I get this to work with Run Script?
How do I get terminal to load the $PATH variable?
export PATH="/usr/local/mysql/bin:~/.composer/vendor/bin:$PATH"
alias composer='php ~/composer.phar'
Terminal $PATH Variable | Command not found
in Workflow Help & Questions
Posted
Hello,
I am trying to run a terminal command "terminus site:list" but keep getting error when trying to use the Run Script action. I've read in other articles it's because the terminal doesn't load the user profile but I can not figure out how to set the $PATH variable in the workflow to make this command accessible.
I installed Terminus using composer so I created an alias in my .bash_profile that is "alias composer='php ~/composer.phar'" . I've also listed the rest of my .bash_profile below for reference.
How do I get this to work with Run Script?
How do I get terminal to load the $PATH variable?
export PATH="/usr/local/mysql/bin:~/.composer/vendor/bin:$PATH"
alias composer='php ~/composer.phar'
Reference Articles:
Thanks,
Rich