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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 runningcd /PROJECTthen runningdocker-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 rundc PROJECTand I can start working.