Skip to content

Commit

Permalink
ditenv win remove patch
Browse files Browse the repository at this point in the history
  • Loading branch information
bagart committed Feb 3, 2019
1 parent a318221 commit b1480a4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .laradock/dotenv_rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ echo "---------- Laradock set env: $LARADOCKENV_PROJECT_NAME ----------"

cd $LARADOCK_PATH
cp env-example .env
sed -i "s#^APP_CODE_PATH_HOST=.*#APP_CODE_PATH_HOST=$PROJECT_PATH/#" .env
sed -i "s#^APP_CODE_PATH_HOST=.*#APP_CODE_PATH_HOST=$PROJECT_PATH#" .env
sed -i "s#^COMPOSE_PROJECT_NAME=.*#COMPOSE_PROJECT_NAME=$LARADOCK_PROJECT_NAME#" .env
sed -i "s#^DATA_PATH_HOST=.*#DATA_PATH_HOST=.data#" .env

#dev by design
sed -i "s/^WORKSPACE_INSTALL_XDEBUG=.*/WORKSPACE_INSTALL_XDEBUG=true/" .env
sed -i "s/^PHP_FPM_INSTALL_XDEBUG=.*/PHP_FPM_INSTALL_XDEBUG=true/" .env

if [[ $DOCKERHOST_OS != "Linux" && $DOCKERHOST_OS != "Mac" ]]; then
# Repair windows permissions
sed -i "s#^\( *\-\) \($.*_PORT.*\)\$#\1 \"\2\"#" docker-compose.yml
sed -i "s#^\( *\-\) \($.*\)\$#\1 d:\2#" docker-compose.yml
fi;
#if [[ $DOCKERHOST_OS != "Linux" && $DOCKERHOST_OS != "Mac" ]]; then
# # Repair windows permissions
# sed -i "s#^\( *\-\) \($.*_PORT.*\)\$#\1 \"\2\"#" docker-compose.yml
# sed -i "s#^\( *\-\) \($.*\)\$#\1 d:\2#" docker-compose.yml
#fi;
cd $PROJECT_PATH
exit

0 comments on commit b1480a4

Please sign in to comment.