DEV Community

Discussion on: What homebrew programs/scripts/commands/websites have you created?

Collapse
 
scottharrisondev profile image
Scott Harrison

To start off, I use docker for local development and it can be quite tiresome typing out docker kill $(docker ps -q) to kill all current docker instances, then running cd /PROJECT then running docker-compose up -d. To improve on this I created a command which runs all three of these commands in order and the PROJECT is a parameter passed into the command so now I just need to run dc PROJECT and I can start working.