From 99c094390ae48b0beaa8127cf239ac8dd032c1ac Mon Sep 17 00:00:00 2001
From: Kacper Donat <kacper@kadet.net>
Date: Sat, 18 Jul 2020 16:09:48 +0200
Subject: [PATCH] Update build data and swagger path (#24)

Update '.build/deploy.sh'

Update 'src/InternshipSystem.Api/Startup.cs'
---
 .build/deploy.sh                    | 4 ++--
 src/InternshipSystem.Api/Startup.cs | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.build/deploy.sh b/.build/deploy.sh
index fdd9a59..4986990 100755
--- a/.build/deploy.sh
+++ b/.build/deploy.sh
@@ -2,8 +2,8 @@ BUILD_PATH=$1
 
 cd $BUILD_PATH/src || exit 1
 
-docker-build -f ./InternshipSystem.Api/Dockerfile -t internship.api .
+docker build -f ./InternshipSystem.Api/Dockerfile -t internship.api .
 
 cd $BUILD_PATH/.docker || exit 1
 
-docker-compose up -d --force-recreate
\ No newline at end of file
+docker-compose up -d --build --force-recreate
\ No newline at end of file
diff --git a/src/InternshipSystem.Api/Startup.cs b/src/InternshipSystem.Api/Startup.cs
index be7ab2e..2608009 100644
--- a/src/InternshipSystem.Api/Startup.cs
+++ b/src/InternshipSystem.Api/Startup.cs
@@ -42,7 +42,7 @@ namespace InternshipSystem.Api
             
             app
                 .UseSwagger()
-                .UseSwaggerUI(options => options.SwaggerEndpoint("/swagger/v1/swagger.json", "InternshipSystem Api"))
+                .UseSwaggerUI(options => options.SwaggerEndpoint("/api/swagger/v1/swagger.json", "InternshipSystem Api"))
                 .UseHttpsRedirection()
                 .UseRouting()
                 .UseAuthorization()