Created
January 14, 2016 14:00
-
-
Save ignasbernotas/acee336452ef18cb130e to your computer and use it in GitHub Desktop.
Git pull cronjob
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*/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