captainhook
Basic Pleskian
I have granted chrooted SSH access on the domain's hosting settings.
I have also added all the binaries in /opt/plesk/node/18/bin/ to the domain's chroot.
However when I run a git deployment with the following code in the additional deployment actions:
I get this error:
I appear to be able to run something like 'yarn --version' successfully under the domain > Node.js > Run Node.js commands. So I'm confused why it fails in the git deployment's additional actions step.
I have also added all the binaries in /opt/plesk/node/18/bin/ to the domain's chroot.
However when I run a git deployment with the following code in the additional deployment actions:
Bash:
#!/bin/bash
rm -rf tmp
(PATH=/opt/plesk/node/18/bin/:$PATH; yarn install && sed -i 's/const defaultCommand = "dev";/const defaultCommand = "start";/g' node_modules/next/dist/bin/next && yarn build &> npm-install.log)
mkdir tmp
touch tmp/restart.txt
I get this error:
Bash:
-: yarn: command not found
I appear to be able to run something like 'yarn --version' successfully under the domain > Node.js > Run Node.js commands. So I'm confused why it fails in the git deployment's additional actions step.