From c134ee865fbd01d167b662c6ea9fa5f0ee1a84c0 Mon Sep 17 00:00:00 2001 From: Ada Werefox Date: Wed, 9 Nov 2022 01:31:21 +0000 Subject: [PATCH] Small edit to deploy script. --- deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index c15810e..10e68ec 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,7 +2,7 @@ set -xe -APP_FOLDER=/usr/src/app/obsl +APP_FOLDER=obsl CONTAINER_NAME=app MODE=$1 @@ -17,8 +17,8 @@ else sudo MODE=$MODE docker-compose build fi -if [ ! -d "$APP_FOLDER" ]; then - sudo MODE=$MODE docker-compose run $CONTAINER_NAME npx create-next-app $APP_FOLDER --ts --eslint +if [ ! -d "$(pwd)/src/$APP_FOLDER" ]; then + sudo MODE=$MODE docker-compose run $CONTAINER_NAME npx create-next-app /usr/src/app/$APP_FOLDER --ts --eslint sudo MODE=$MODE docker-compose run $CONTAINER_NAME bash -c "cd $APP_FOLDER && npm install tailwindcss autoprefixer" sudo MODE=$MODE docker-compose run $CONTAINER_NAME bash -c "cd $APP_FOLDER && npx tailwindcss init -p" sudo chown -R $USER:$USER ./src