Last active
August 29, 2015 14:03
-
-
Save JeffreyVdb/6b104b8a8028da5f2853 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
onRemote() { | |
vagrant ssh -c "cd /var/www; $*" | |
} | |
cd "$(git rev-parse --show-toplevel)/www" | |
vagrant up --provision | |
npm install | |
bower install | |
grunt all | |
(onRemote composer update) & | |
(onRemote php artisan migrate:refresh --seed) & | |
(onRemote redis-cli flushdb) & | |
wait | |
echo 'All tasks were executed' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment