Last active
November 19, 2016 07:41
-
-
Save aaronheath/95808695917e4f5542917b02521721b3 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
#!/usr/bin/env bash | |
############################## | |
## Laravel ## | |
############################## | |
# Migrate & Seed (Vagrant VM) | |
alias do_migrate_and_seed="cd /vagrant ; php artisan migrate:refresh --seed ; cd -" | |
# Migrate & Seed SLDM (Vagrant VM) | |
alias do_migrate_and_import="cd /vagrant ; php artisan import --users=/vagrant/vagrant/allusers.csv --departments=/vagrant/vagrant/departments.csv --sets=/vagrant/vagrant/sets.csv --seed --pwBypass ; cd -" | |
# Restart Queue (Vagrant VM) | |
alias do_queue_restart="cd /vagrant ; php artisan queue:restart ; cd -" | |
# Complete Cache Clear (Vagrant VM) | |
alias do_clearcache="cd /vagrant ; composer dumpautoload ; php artisan clear-compiled ; php artisan optimize ; php artisan view:clear ; cd -" | |
# Tinker (Vagrant VM) | |
alias tinker="cd /vagrant ; php artisan tinker" | |
# Event Generation (Vagrant VM) | |
alias do_event_generate="cd /vagrant ; php artisan event:generate ; cd -" | |
############################## | |
## Vagrant ## | |
############################## | |
# Destroy & Rebuild VM | |
alias do_vagrant_rebuild="vagrant destroy -f ; vagrant up" | |
############################## | |
## Git ## | |
############################## | |
# Commit with message 'wip' | |
alias do_git_wip="git commit -m 'WIP'" | |
# Ammend latest commit to current date time. | |
alias do_git_amend_date="git commit --amend --date=\"$(date -R)\"" | |
############################## | |
## AHDC (Vagrant) ## | |
############################## | |
alias do_syncS3="cd /vagrant ; php artisan app:syncS3 ; cd -" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment