Small edit to deploy script.
This commit is contained in:
		
							parent
							
								
									778832ada5
								
							
						
					
					
						commit
						c134ee865f
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue