Skip to content

Instantly share code, notes, and snippets.

@mwadon
Last active June 15, 2016 05:05
Show Gist options
  • Save mwadon/73e912b07f671b12ca80957423897aa5 to your computer and use it in GitHub Desktop.
Save mwadon/73e912b07f671b12ca80957423897aa5 to your computer and use it in GitHub Desktop.
Symfony alias for vagrant
#!/bin/bash
echo "Run 'php app/console $1' on vagrant";
ssh -i .vagrant/machines/default/virtualbox/private_key -t vagrant@192.168.11.101 "cd /var/www && php app/console $1"
@mwadon
Copy link
Author

mwadon commented Jun 15, 2016

Example of usage:
./sf.sh c:c
./sf.sh d:m:m

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