Skip to content

Instantly share code, notes, and snippets.

@MahdiY
Created May 16, 2019 08:08
Show Gist options
  • Save MahdiY/b6e55fe7b6366f13e162791e7af883d5 to your computer and use it in GitHub Desktop.
Save MahdiY/b6e55fe7b6366f13e162791e7af883d5 to your computer and use it in GitHub Desktop.
Serve laravel, npm run watch and repeated git pull
git pull
TIMEOUT /T 30 /NOBREAK
git_pull.bat
start cmd /C "php artisan serve"
start cmd /C "npm run watch"
start cmd /C "git_pull.bat"
exit
@MahdiY
Copy link
Author

MahdiY commented May 16, 2019

Laravel development tools for windows.

  • Serve laravel with php artisan serve command
  • Compile frontend files (VueJS, ...) with npm run watch
  • Repeat git pull command every 30 seconds

Just put serve.bat and git_pull.bat files in your project root and open serve.bat! Finish!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment