1
I solved the problem by putting a post_deploy.sh
file on the server, and putting this line on the circle.yml
:
ssh -i ~/.ssh/id_myhost user@server 'post_deploy.sh'
It executes the instructions in the post_deploy.sh
file, which is exactly what I wanted.
Source:stackexchange.com