chapterjason
New Pleskian
Hey, I followed this instructions to configure my chrooted env for the domain user, like it is written here.
I currently use this script to configure the env.
And I use this actions to update the project after deployment.
It's working great! Now I need Yarn and NodeJS to rebuild the assets after deployment. I already tried to add Yarn and NodeJS but it doesn't work. Is there any clean solution for this?
I currently use this script to configure the env.
Code:
echo reset
./update_chroot.sh --rebuild
echo add php
./update_chroot.sh --add /opt/plesk/php/7.1/bin/php
mkdir /var/www/vhosts/chroot/usr/share
cp -a /usr/share/zoneinfo /var/www/vhosts/chroot/usr/share
for i in /opt/plesk/php/7.1/lib/php/modules/*.so ; do ./update_chroot.sh --add $i ; done
cp -a /opt/plesk/php/7.1/etc/ /var/www/vhosts/chroot/opt/plesk/php/7.1/
sed -i.bkp 's/;date.timezone =/date.timezone = Europe\/Berlin/' /var/www/vhosts/chroot/opt/plesk/php/7.1/etc/php.ini
echo add composer
php -r "copy('https://getcomposer.org/installer ', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"
cp -a composer.phar /var/www/vhosts/chroot/usr/bin
echo add node
echo add yarn
echo apply to all
./update_chroot.sh --apply all
And I use this actions to update the project after deployment.
Code:
/opt/plesk/php/7.1/bin/php /usr/bin/composer.phar update
It's working great! Now I need Yarn and NodeJS to rebuild the assets after deployment. I already tried to add Yarn and NodeJS but it doesn't work. Is there any clean solution for this?