• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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