Skip to content

Instantly share code, notes, and snippets.

@ignasbernotas
Created January 14, 2016 14:00
Show Gist options
  • Save ignasbernotas/acee336452ef18cb130e to your computer and use it in GitHub Desktop.
Save ignasbernotas/acee336452ef18cb130e to your computer and use it in GitHub Desktop.
Git pull cronjob
*/1 * * * * su -s /bin/sh root -c 'cd <project_dir> && /usr/bin/git pull && node node_modules/gulp/bin/gulp.js --production && composer update && chown -R user:user *'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment