• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Question Git deploy from path supported?

Ramiro Araujo

New Pleskian
Hi
I usually version my web projects with a "src" or "dist" folder where the end files that should be deployed are. I can't seem to find if I can specify that in the Git extension. Basically, I don't want to deploy the full repo, only a subdirectory. Is this supported?

Thanks!
 
Hey just FYI - I figured out a simple (very simple ;) solution:
1. change the repo deploy location to some different path - i am using /repo-clone
2. add shell commands to execute after deployment, something like:

```sh
rm -rf /httpddocs/wp-content/themes/mysupertheme
cp -r /repo-clone/some-path /httpddocs/wp-content/themes/mysupertheme
```

Good luck,
Greg
 
Back
Top