Browse Source

minors improvements

Bachir Soussi Chiadmi 3 years ago
parent
commit
35a7841864
3 changed files with 6 additions and 4 deletions
  1. 4 2
      Docker/app/client-entrypoint.sh
  2. 1 1
      Makefile
  3. 1 1
      docker-compose.yml

+ 4 - 2
Docker/app/client-entrypoint.sh

@@ -1,10 +1,12 @@
 #!/bin/sh
 
 # cat /etc/passwd|grep 1000
+cd /app
 
-echo "Npm install"
+echo "Cleaning node_modules"
+rm -rf node_modules
 
-cd /app
+echo "Npm install"
 npm install
 
 echo "Run npm dev"

+ 1 - 1
Makefile

@@ -37,7 +37,7 @@ restart_client:
 		docker-compose restart client
 
 exec_client:
-		docker exec -it muntadas_client_1 bash
+		docker exec -it muntadas_client_1 sh
 
 #
 # exec_mysql:

+ 1 - 1
docker-compose.yml

@@ -7,7 +7,7 @@ services:
       - "${CLIENT_ROOT}:/app"
       # - client-home:/home/gdp
     ports:
-      - 8788:8988
+      - 8788:8788
     working_dir: "/app"
 
 # volumes: