Last active
October 5, 2017 12:54
-
-
Save johanvanhelden/6f3e7c3dd419fb3c542b2fa41485db6c to your computer and use it in GitHub Desktop.
Laravel ide helpers generator bash alias for Dockerhero
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
## Simply add this function to your .bash_aliases and run ideHelpers in the root of your project. | |
ideHelpers() { | |
project=`basename $PWD` | |
docker exec -i --user=dockerhero dockerhero_workspace bash -c "cd /var/www/projects/$project && ./artisan ide-helper:generate" | |
docker exec -i --user=dockerhero dockerhero_workspace bash -c "cd /var/www/projects/$project && ./artisan ide-helper:meta" | |
#due to atom-ide-ui and ide-php, this file is now unwanted - so let's delete it instead. | |
#docker exec -i --user=dockerhero dockerhero_workspace bash -c "cd /var/www/projects/$project && ./artisan ide-helper:models -n" | |
docker exec -i --user=dockerhero dockerhero_workspace bash -c "cd /var/www/projects/$project && rm -f _ide_helper_models.php" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment