From 7e9e17ce62313604def5ea8ac04cff2e46fdde3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Gonz=C3=A1lez=20Castro?= <27441273+OnlyOnePro@users.noreply.github.com> Date: Wed, 20 Jan 2021 12:23:07 +0100 Subject: [PATCH] Deployed the application to Heroku! --- .dockerignore | 25 ------------------------- NStart/Dockerfile => Dockerfile | 3 ++- NStart.sln | 5 +++-- NStart/NStart.csproj | 4 ++++ NStart/Pages/Shared/_Layout.cshtml | 3 +-- README.md | 2 ++ 6 files changed, 12 insertions(+), 30 deletions(-) delete mode 100644 .dockerignore rename NStart/Dockerfile => Dockerfile (87%) diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 3729ff0..0000000 --- a/.dockerignore +++ /dev/null @@ -1,25 +0,0 @@ -**/.classpath -**/.dockerignore -**/.env -**/.git -**/.gitignore -**/.project -**/.settings -**/.toolstarget -**/.vs -**/.vscode -**/*.*proj.user -**/*.dbmdl -**/*.jfm -**/azds.yaml -**/bin -**/charts -**/docker-compose* -**/Dockerfile* -**/node_modules -**/npm-debug.log -**/obj -**/secrets.dev.yaml -**/values.dev.yaml -LICENSE -README.md \ No newline at end of file diff --git a/NStart/Dockerfile b/Dockerfile similarity index 87% rename from NStart/Dockerfile rename to Dockerfile index 160cb18..c51baf7 100644 --- a/NStart/Dockerfile +++ b/Dockerfile @@ -19,4 +19,5 @@ RUN dotnet publish "NStart.csproj" -c Release -o /app/publish FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "NStart.dll"] \ No newline at end of file +#ENTRYPOINT ["dotnet", "NStart.dll"] +CMD ASPNETCORE_URLS=http://*:$PORT dotnet NStart.dll diff --git a/NStart.sln b/NStart.sln index c18179f..fd005d5 100644 --- a/NStart.sln +++ b/NStart.sln @@ -7,14 +7,15 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NStart", "NStart\NStart.csp EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9C6F437A-D08D-4C1C-9F4D-2609B0B2126C}" ProjectSection(SolutionItems) = preProject + Dockerfile = Dockerfile README.md = README.md EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{16075A44-C4E5-4CDA-9083-ABD1771DA75F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NStart.Tests.FunctionalityTests", "NStart.Tests.FunctionalityTests\NStart.Tests.FunctionalityTests.csproj", "{14832644-282E-4965-8B8D-5B9DA5F6E9A4}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NStart.Tests.FunctionalityTests", "NStart.Tests.FunctionalityTests\NStart.Tests.FunctionalityTests.csproj", "{14832644-282E-4965-8B8D-5B9DA5F6E9A4}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NStart.Tests.IntegrationTests", "NStart.Tests.IntegrationTests\NStart.Tests.IntegrationTests.csproj", "{7FBF759B-6F0C-4942-BE91-35E95D3881E6}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NStart.Tests.IntegrationTests", "NStart.Tests.IntegrationTests\NStart.Tests.IntegrationTests.csproj", "{7FBF759B-6F0C-4942-BE91-35E95D3881E6}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/NStart/NStart.csproj b/NStart/NStart.csproj index a1e9115..207c62c 100644 --- a/NStart/NStart.csproj +++ b/NStart/NStart.csproj @@ -10,6 +10,10 @@ true + + + + diff --git a/NStart/Pages/Shared/_Layout.cshtml b/NStart/Pages/Shared/_Layout.cshtml index 6f85b97..0e5b699 100644 --- a/NStart/Pages/Shared/_Layout.cshtml +++ b/NStart/Pages/Shared/_Layout.cshtml @@ -55,8 +55,7 @@ + crossorigin="anonymous" />