-
-
Save millejano/21e8319690f905f2f3f60d28a1b6f3f3 to your computer and use it in GitHub Desktop.
use a Makefile to run ssh commands on a vagrant box
This file contains hidden or 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
SERVER_DIR=/var/www/host/server | |
CONSOLE=$(SERVER_DIR)/app/console | |
update: | |
vagrant ssh -- "cd $(SERVER_DIR) && \ | |
sudo composer selfupdate -n -v && \ | |
composer install -n -v" | |
cache: | |
vagrant ssh -- "$(CONSOLE) doctrine:migrations:migrate -n && \ | |
$(CONSOLE) cache:clear -e=prod && \ | |
$(CONSOLE) assetic:dump -e=dev" | |
.PHONY: update cache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment