Not sure if this is the right category, but it made the most sense in regards to what my problem is. Also, I’m quite new to Octo, so bear with me
Can I delete files in package on Octo-server before deploying package to target-server?
We use Circle/CI for building our (React) web-app. The build produces a dist folder with subfolders pr. environment
dist |__ | - dev | - test | - prod
As of now we deploy the entire package to each env and set up a virtualDir that points to the correct env-folder on server.
What we would like to do is:
- Get package into Octo ( Step OK )
- Clean the package in pre-deploy to only contain the correct env-files ( NOT OK )
- Set new physical path for virtualDir ( Step OK )
I can not for the life of me figure out how to do the second step. Can’t seem to find anyone with a similar issue.
Is this even possible?
Can I delete files in the package before it’s deployed to the server?
We do NOT want to make several packages and send those to Octo.