• 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.

Resolved schedule operations after git pull event

paskuale

Basic Pleskian
Server operating system version
Debian 10.13
Plesk version and microupdate number
Obsidian v.18.0.53
Hi, every time I pull from the repository I have a small difference in the .htaccess file that forces me to manually update each pull operation, is there a way to schedule the operation ?
Thanks
 
Hello,

If you are using Git extension to pull your changes from a remote repo, you can use Deploy Action in Domain -> Git -> Settings (lower right corner of Git overview card). There you can enable "Enable additional deployment actions" checkbox and write any shell code you want. This code will be executed on every Deploy, both for manually from extension UI, and automatic using extension hooks.
 
Thanks so much for the suggestion @EvgeniyKovrizhnikov , it was just what I was looking for :) he advises me to insert a command for each new line, but a command of this type works if I execute it from the shell, if I insert it as an addition deployment actions it does not recognize it. Where am I wrong?
the command is this:
/opt/plesk/php/8.1/bin/php ./bin/console cache:clear
error return this:
-: /opt/plesk/php/8.1/bin/php: No such file or directory
thanks ;)
 
Hi all,
I continue on this thread because the problem is close to the previous case... every time I run a git pull it overwrites (rightly) the .htaccess file, and I promptly have to update a string within the same file:
Code:
Options +FollowSymlinks
in -->
Code:
Options +SymLinksIfOwnerMatch
any suggestions to overcome this boring step ? Thanks
 
Disabling "Restrict the ability to follow symbolic links" on the "Websites & Domains" > "Hosting & DNS" > "Apache & Nginx" page would allow you to use the "+FollowSymlinks" option. If you are no on a shared hosting environment and control your code yourself, it is a low risk change.
 
Back
Top