Started coding at the age of 13, now a professional software engineer and Scrum Master, creating and maintaining enterprise solutions. Eat - Sleep - Code - Lift - Repeat 💪🏾
Love it, thanks for sharing!
I had to add shell.exec('chmod +x ~/scripts/deploy_prod') before the actual execution because pulling always resetted the permissions somehow.
Thank you so much! already added it to the post. Actually in this setup since the scripts are residing on the server only one time setting the permission will do.
Started coding at the age of 13, now a professional software engineer and Scrum Master, creating and maintaining enterprise solutions. Eat - Sleep - Code - Lift - Repeat 💪🏾
You're welcome! You are right, in the described scenario setting in initially will work. My case was a little bit different because I had all the scripts in the repo and therefore needed to add it to the shell execute.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Love it, thanks for sharing!
I had to add
shell.exec('chmod +x ~/scripts/deploy_prod')
before the actual execution because pulling always resetted the permissions somehow.Thank you so much! already added it to the post. Actually in this setup since the scripts are residing on the server only one time setting the permission will do.
You're welcome! You are right, in the described scenario setting in initially will work. My case was a little bit different because I had all the scripts in the repo and therefore needed to add it to the shell execute.