When I am developing locally I run a lot of Artisan commands on my VM and I have a memory like Dory (from Nemo). I can never remember the commands I need to run without looking.
So what I have done is setup Envoy with common tasks I run on my VM. Here is a quick example of my reset:
@servers(['vm' => '-p 2222 email@example.com']) @macro('reset') migrate_reset migrate_seed reload_elastic @endmacro @task('migrate_reset', ['on' => 'vm']) cd ~/Code/MyApp php artisan migrate:reset --env=local @endtask @task('migrate_seed', ['on' => 'vm']) cd ~/Code/MyApp php artisan migrate --seed --env=local @endtask
Of course the opportunities are limitless for this and I’m really enjoying it.
Filed in: Laravel Tutorials
Join the weekly newsletter and never miss out on new tips, tutorials, and more.
- Laravel + Vue.JS developer
Remote or in Toronto Canada
Star Dot Hosting Inc
- Full Stack or Back-End Developer
Alexandria, VA; Tallahassee, FL; Orlando, FL
Marketing for Change
- Senior Quality Assurance Engineer
- Senior PHP/Laravel Developer: Your Dream Work Environment
iPhone Photography School
- Senior Software Engineer
Remote or San Francisco
- Laravel Developer
Las Vegas, NV
- R&D Developer
Trucker – Mapping remote API resources ActiveResource style
Trucker is a PHP package for mapping remote API resources (usually RESTful) as models in an ActiveResource style. The…
Supercharging your Gruntfile: How to squeeze the most out of your build configuration.
Learn how to squeeze the most out of your Gruntfile, by splitting it across multiple files, autoloading, concurrent t…