photos/cypress/stop.sh

13 lines
267 B
Bash
Executable File

#!/usr/bin/env bash
# RUN THIS SCRIPT FROM THE ROOT FOLDER OF YOUR APP
appname=${PWD##*/}
if [[ $appname == "cypress" ]]
then
echo "Please run this app from your app root folder."
else
echo "Killing server for the $appname app"
cd cypress
docker-compose stop
fi