DEV Community

Discussion on: Automatic deployment from Github to your server with no third party app

Collapse
 
darksmile92 profile image
Robin Kretzschmar

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.

Collapse
 
opshack profile image
Pooria A

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.

Collapse
 
darksmile92 profile image
Robin Kretzschmar

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.