• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Git additional Deployment command

caco2001

New Pleskian
Hello Friends.

I was wondering if you could help me with the following issue.

I was able to configure and run a NuxtJS node App in plesk windows using the Node Module and IISNode.

I'm now configuring the Git extension so that the App automatically deploys when I push to the Github Repo. Everything is working fine except that I need to manually run the command Yarn Build in the app directory after it pulls a change so that the change can be applied. I tried adding "Yarn Build" to the Shell Script in the Git Additional Deployment action field but it does not work. Any help configuring the right command would be greatly appreciated.

Regards.
Carlos
 
Hey, I've managed to set up commands properly with Node.js. It goes like this:

/opt/plesk/node/12/bin/npm run build &> npm.log (so just type here path to yarn)

Logfile can be sometimes useful so I also create it each time.

You also need to go to Access to Web Hosting and select /bin/bash in SSH select => this is the most important part
 
Hi Toxxiczny.

Thanks for the reply. Is that a windows path or linux?

I'm using Onyx in Windows so not sure if the same path applies.

Thanks.

Carlos
 
Used to work with @Toxxiczny's solution but suddenly stopped and only works with yarn manually.
Tried to implement the same commands for yarn but it doesn't run:
/usr/bin/yarn install
User has /bin/bash ssh access.

Has anyone found a solution?
 
Back
Top