Skip to content

Commit

Permalink
Publico API
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasdepetrisd committed Feb 22, 2024
1 parent 29e26fc commit 9770c09
Show file tree
Hide file tree
Showing 16 changed files with 137 additions and 2,981 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ COPY ["src/WebAPI/WebAPI.csproj", "src/WebAPI/"]
COPY ["src/Application/Application.csproj", "src/Application/"]
COPY ["src/Domain/Domain.csproj", "src/Domain/"]
COPY ["src/Infraestructure/Infraestructure.csproj", "src/Infraestructure/"]
RUN dotnet restore "./src/WebAPI/WebAPI.csproj"
RUN dotnet restore "/src/WebAPI/WebAPI.csproj"
COPY . .
WORKDIR ./src/WebAPI
WORKDIR /src/WebAPI
RUN dotnet build ./WebAPI.csproj -c $BUILD_CONFIGURATION -o /app/build

FROM build AS publish
Expand Down
2 changes: 1 addition & 1 deletion src/Infraestructure/DependencyInjection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static IServiceCollection AddInfraestructure(
this IServiceCollection services,
IConfiguration configuration)
{
var connectionString = Environment.GetEnvironmentVariable("DATABASE_URL") ?? configuration.GetConnectionString("FreeASP");
var connectionString = Environment.GetEnvironmentVariable("DATABASE_URL") ?? configuration.GetConnectionString("AzureSQL");

Console.WriteLine(connectionString);

Expand Down
Loading

0 comments on commit 9770c09

Please sign in to comment.