From f2adaaa3777566dc20e08c01d48329dfbff7261b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Mon, 6 Sep 2021 10:10:36 +0500 Subject: [PATCH] make .service file part of the build --- AsbCloudWebApi/AsbCloudWebApi.csproj | 7 +++++ AsbCloudWebApi/AsbCloudWebApi.service | 16 +++++------ AsbCloudWebApi/wwwroot/asset-manifest.json | 32 +++++++++++----------- AsbCloudWebApi/wwwroot/index.html | 2 +- 4 files changed, 32 insertions(+), 25 deletions(-) diff --git a/AsbCloudWebApi/AsbCloudWebApi.csproj b/AsbCloudWebApi/AsbCloudWebApi.csproj index 7806d11b..c5a832bc 100644 --- a/AsbCloudWebApi/AsbCloudWebApi.csproj +++ b/AsbCloudWebApi/AsbCloudWebApi.csproj @@ -8,9 +8,16 @@ + + + + PreserveNewest + + + diff --git a/AsbCloudWebApi/AsbCloudWebApi.service b/AsbCloudWebApi/AsbCloudWebApi.service index 4c5f5ac4..7a8316dc 100644 --- a/AsbCloudWebApi/AsbCloudWebApi.service +++ b/AsbCloudWebApi/AsbCloudWebApi.service @@ -1,15 +1,15 @@ -[Unit] -Description=ASB Vision Rest Service [.net core] -Requires=config -# After=discovery +[Unit] +Description=ASB Vision +After=network-online.target postgresql.service +Wants=network-online.target [Service] -User=root +User=soltex # The configuration file application.properties should be here: # change this to your workspace -WorkingDirectory=/home/soltex/cloud2/rest -#path to executable. +WorkingDirectory=/home/soltex/AsbCloud +#path to executable. #executable is a bash script which calls jar file -ExecStart=/home/soltex/cloud2/rest/AsbCloudWebApi +ExecStart=/home/soltex/AsbCloud/AsbCloudWebApi SuccessExitStatus=0 TimeoutStopSec=20 Restart=on-failure diff --git a/AsbCloudWebApi/wwwroot/asset-manifest.json b/AsbCloudWebApi/wwwroot/asset-manifest.json index 1808cd42..b3d01681 100644 --- a/AsbCloudWebApi/wwwroot/asset-manifest.json +++ b/AsbCloudWebApi/wwwroot/asset-manifest.json @@ -1,23 +1,23 @@ { "files": { - "main.css": "/static/css/main.448cf8b8.chunk.css", - "main.js": "/static/js/main.5b83db3d.chunk.js", - "main.js.map": "/static/js/main.5b83db3d.chunk.js.map", - "runtime-main.js": "/static/js/runtime-main.4b17480a.js", - "runtime-main.js.map": "/static/js/runtime-main.4b17480a.js.map", - "static/js/2.2d9d7b1b.chunk.js": "/static/js/2.2d9d7b1b.chunk.js", - "static/js/2.2d9d7b1b.chunk.js.map": "/static/js/2.2d9d7b1b.chunk.js.map", - "static/js/3.98017213.chunk.js": "/static/js/3.98017213.chunk.js", - "static/js/3.98017213.chunk.js.map": "/static/js/3.98017213.chunk.js.map", + "main.css": "/static/css/main.01936687.chunk.css", + "main.js": "/static/js/main.8d10bcbc.chunk.js", + "main.js.map": "/static/js/main.8d10bcbc.chunk.js.map", + "runtime-main.js": "/static/js/runtime-main.c0bb1130.js", + "runtime-main.js.map": "/static/js/runtime-main.c0bb1130.js.map", + "static/js/2.149b2d74.chunk.js": "/static/js/2.149b2d74.chunk.js", + "static/js/2.149b2d74.chunk.js.map": "/static/js/2.149b2d74.chunk.js.map", + "static/js/3.ffc36876.chunk.js": "/static/js/3.ffc36876.chunk.js", + "static/js/3.ffc36876.chunk.js.map": "/static/js/3.ffc36876.chunk.js.map", "index.html": "/index.html", - "static/css/main.448cf8b8.chunk.css.map": "/static/css/main.448cf8b8.chunk.css.map", - "static/js/2.2d9d7b1b.chunk.js.LICENSE.txt": "/static/js/2.2d9d7b1b.chunk.js.LICENSE.txt", - "static/media/pointer.5c51649c.svg": "/static/media/pointer.5c51649c.svg" + "static/css/main.01936687.chunk.css.map": "/static/css/main.01936687.chunk.css.map", + "static/js/2.149b2d74.chunk.js.LICENSE.txt": "/static/js/2.149b2d74.chunk.js.LICENSE.txt", + "static/media/pointer.e8df778c.svg": "/static/media/pointer.e8df778c.svg" }, "entrypoints": [ - "static/js/runtime-main.4b17480a.js", - "static/js/2.2d9d7b1b.chunk.js", - "static/css/main.448cf8b8.chunk.css", - "static/js/main.5b83db3d.chunk.js" + "static/js/runtime-main.c0bb1130.js", + "static/js/2.149b2d74.chunk.js", + "static/css/main.01936687.chunk.css", + "static/js/main.8d10bcbc.chunk.js" ] } \ No newline at end of file diff --git a/AsbCloudWebApi/wwwroot/index.html b/AsbCloudWebApi/wwwroot/index.html index b0797100..03e09813 100644 --- a/AsbCloudWebApi/wwwroot/index.html +++ b/AsbCloudWebApi/wwwroot/index.html @@ -1 +1 @@ -АСБ Vision
\ No newline at end of file +АСБ Vision
\ No newline at end of file