From 3ee32760dfff1983809c73bddf06252b428cbdf9 Mon Sep 17 00:00:00 2001 From: Daniel Cabrera Date: Wed, 3 Jul 2019 13:53:23 +0200 Subject: [PATCH] Hotfix for yarn/node on laravel projects --- bin/_command_wrapper_run | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/bin/_command_wrapper_run b/bin/_command_wrapper_run index d42e2d4..ddbd1e9 100644 --- a/bin/_command_wrapper_run +++ b/bin/_command_wrapper_run @@ -4,13 +4,6 @@ current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" bin_path="`dirname $0`" root_dir="$( cd $bin_path && cd .. && pwd)" relative_path=${PWD#$root_dir} -user_uid=1000 -user_group=1000 - -if [[ "$OSTYPE" == "darwin"* ]]; then - user_uid=501 - user_group=20 -fi # Load project specific variables. set -o allexport @@ -24,14 +17,8 @@ shift; container=$PROJECT_NAME container+="_$container_name" -# If the input comes from a pipe or file ("< something.txt") we cant use "t" -#flag since it will fail with "the input device is not a TTY" -# -t 0 == stdin -if [ -t 0 ]; then - tty="-it" -else - tty="-i" -fi +## MOVE TO FOLDER where docker-compose yml files are located +cd ${root_dir} command="docker-compose run --rm node /bin/bash -c 'cd /var/www/html$relative_path && $@'"