From 37b91f9556cf17c3b3dd6b553630608a05e5b6fc Mon Sep 17 00:00:00 2001 From: Gumelar Agum Date: Thu, 31 Oct 2019 14:31:13 +0700 Subject: [PATCH] add .dockerignore and fixing nginx conf for local deploy --- .dockerignore | 2 ++ nginx/default.conf | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..b7dab5e9c --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +node_modules +build \ No newline at end of file diff --git a/nginx/default.conf b/nginx/default.conf index c5c2028ec..8f0fb90cb 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -2,9 +2,10 @@ server { listen 80; server_name localhost; root /app/dashboard/; - - location / { + + location /dashboard/ { + alias /app/dashboard/; index index.html; - try_files $uri $uri/ /index.html$args; + try_files $uri $uri/ /dashboard/index.html$args; } } \ No newline at end of file