Skip to content
Snippets Groups Projects
Commit 6e217494 authored by L. Ellenbeck's avatar L. Ellenbeck
Browse files

Fixed launch settings

parent 98c87ddc
No related tags found
1 merge request!21New: Containerization (coscine/issues#2906)
......@@ -3,12 +3,21 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
"configurations":
[
{
"name": "C#: GraphDeployer Debug",
"type": "dotnet",
"type": "coreclr",
"request": "launch",
"projectPath": "${workspaceFolder}/src/GraphDeployer/GraphDeployer.csproj",
"preLaunchTask": "dotnet: build",
"program": "${workspaceFolder}/src/GraphDeployer/bin/Debug/net8.0/Coscine.GraphDeployer.dll",
"args": [],
"cwd": "${workspaceFolder}/src/GraphDeployer",
"stopAtEntry": false,
"console": "internalConsole",
"env": {
"DOTNET_ENVIRONMENT": "Development"
}
],
}
]
}
\ No newline at end of file
{
"version": "2.0.0",
"tasks": [
{
"type": "dotnet",
"task": "build",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"label": "dotnet: build"
}
]
}
\ No newline at end of file
......@@ -31,7 +31,7 @@ RUN chmod 0644 /etc/cron.d/graph-deployer-cron
RUN crontab /etc/cron.d/graph-deployer-cron
# Set the build-time argument and default environment variable
ENV ASPNETCORE_ENVIRONMENT=Development
ENV DOTNET_ENVIRONMENT=Development
# Create the log file
RUN touch /var/log/cron.log
......
......@@ -19,7 +19,7 @@ public class Program
public static int Main(string[] args)
{
_environmentName = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
_environmentName = Environment.GetEnvironmentVariable("DOTNET_ENVIRONMENT");
Console.WriteLine($"Running in environment: {_environmentName ?? "environment is null"}");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment