Small edit to deploy script.
This commit is contained in:
parent
778832ada5
commit
c134ee865f
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
APP_FOLDER=/usr/src/app/obsl
|
APP_FOLDER=obsl
|
||||||
CONTAINER_NAME=app
|
CONTAINER_NAME=app
|
||||||
|
|
||||||
MODE=$1
|
MODE=$1
|
||||||
@ -17,8 +17,8 @@ else
|
|||||||
sudo MODE=$MODE docker-compose build
|
sudo MODE=$MODE docker-compose build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "$APP_FOLDER" ]; then
|
if [ ! -d "$(pwd)/src/$APP_FOLDER" ]; then
|
||||||
sudo MODE=$MODE docker-compose run $CONTAINER_NAME npx create-next-app $APP_FOLDER --ts --eslint
|
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 && npm install tailwindcss autoprefixer"
|
||||||
sudo MODE=$MODE docker-compose run $CONTAINER_NAME bash -c "cd $APP_FOLDER && npx tailwindcss init -p"
|
sudo MODE=$MODE docker-compose run $CONTAINER_NAME bash -c "cd $APP_FOLDER && npx tailwindcss init -p"
|
||||||
sudo chown -R $USER:$USER ./src
|
sudo chown -R $USER:$USER ./src
|
||||||
|
Loading…
Reference in New Issue
Block a user