Update build data and swagger path (#24)
Update '.build/deploy.sh' Update 'src/InternshipSystem.Api/Startup.cs'
This commit is contained in:
parent
f9e47194a8
commit
99c094390a
@ -2,8 +2,8 @@ BUILD_PATH=$1
|
|||||||
|
|
||||||
cd $BUILD_PATH/src || exit 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
|
cd $BUILD_PATH/.docker || exit 1
|
||||||
|
|
||||||
docker-compose up -d --force-recreate
|
docker-compose up -d --build --force-recreate
|
@ -42,7 +42,7 @@ namespace InternshipSystem.Api
|
|||||||
|
|
||||||
app
|
app
|
||||||
.UseSwagger()
|
.UseSwagger()
|
||||||
.UseSwaggerUI(options => options.SwaggerEndpoint("/swagger/v1/swagger.json", "InternshipSystem Api"))
|
.UseSwaggerUI(options => options.SwaggerEndpoint("/api/swagger/v1/swagger.json", "InternshipSystem Api"))
|
||||||
.UseHttpsRedirection()
|
.UseHttpsRedirection()
|
||||||
.UseRouting()
|
.UseRouting()
|
||||||
.UseAuthorization()
|
.UseAuthorization()
|
||||||
|
Loading…
Reference in New Issue
Block a user