• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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