Skip to content

Commit

Permalink
* Add Linux service template
Browse files Browse the repository at this point in the history
* Update README and Copyright year
* Fix visual glitch related to font-awesome
* Cleanup of Project file
  • Loading branch information
m-weryszko committed Mar 17, 2022
1 parent 8069131 commit 4748383
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 31 deletions.
36 changes: 8 additions & 28 deletions IRMA_onAir_Web/IrmaWeb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,23 @@
<Compile Remove="App_Start\**" />
<Compile Remove="wwwroot\Content\Theme\Collection\**" />
<Compile Remove="wwwroot\Content\Theme\vendors\**" />
<Compile Remove="wwwroot\Scripts\blobjs\**" />
<Compile Remove="wwwroot\Scripts\local\**" />
<Content Remove="App_Start\**" />
<Content Remove="wwwroot\Content\Theme\Collection\**" />
<Content Remove="wwwroot\Content\Theme\vendors\**" />
<Content Remove="wwwroot\Scripts\blobjs\**" />
<Content Remove="wwwroot\Scripts\local\**" />
<EmbeddedResource Remove="App_Start\**" />
<EmbeddedResource Remove="wwwroot\Content\Theme\Collection\**" />
<EmbeddedResource Remove="wwwroot\Content\Theme\vendors\**" />
<EmbeddedResource Remove="wwwroot\Scripts\blobjs\**" />
<EmbeddedResource Remove="wwwroot\Scripts\local\**" />
<None Remove="App_Start\**" />
<None Remove="wwwroot\Content\Theme\Collection\**" />
<None Remove="wwwroot\Content\Theme\vendors\**" />
<None Remove="wwwroot\Scripts\blobjs\**" />
<None Remove="wwwroot\Scripts\local\**" />
</ItemGroup>

<ItemGroup>
Expand All @@ -44,10 +52,6 @@
<None Include="Views\_ViewStart.cshtml" />
<None Include="wwwroot\Content\Theme\rings.svg" />
<None Include="wwwroot\Content\Theme\spinning-circle.svg" />
<None Include="wwwroot\Scripts\blobjs\Blob.js" />
<None Include="wwwroot\Scripts\blobjs\blob.min.js" />
<None Include="wwwroot\Scripts\blobjs\FileSaver.js" />
<None Include="wwwroot\Scripts\blobjs\FileSaver.min.js" />
<None Include="wwwroot\Scripts\custom\application-modalVisibility.js" />
<None Include="wwwroot\Scripts\custom\application-modalVisibility.min.js" />
<None Include="wwwroot\Scripts\custom\application.js" />
Expand All @@ -56,30 +60,6 @@
<None Include="wwwroot\Scripts\custom\initial.min.js" />
<None Include="wwwroot\Scripts\custom\pre-initial.js" />
<None Include="wwwroot\Scripts\custom\pre-initial.min.js" />
<None Include="wwwroot\Scripts\local\jquery.i18n.fallbacks.js" />
<None Include="wwwroot\Scripts\local\jquery.i18n.fallbacks.min.js" />
<None Include="wwwroot\Scripts\local\jquery.i18n.js" />
<None Include="wwwroot\Scripts\local\jquery.i18n.language.js" />
<None Include="wwwroot\Scripts\local\jquery.i18n.language.min.js" />
<None Include="wwwroot\Scripts\local\jquery.i18n.messagestore.js" />
<None Include="wwwroot\Scripts\local\jquery.i18n.messagestore.min.js" />
<None Include="wwwroot\Scripts\local\jquery.i18n.min.js" />
<None Include="wwwroot\Scripts\local\jquery.i18n.parser.js" />
<None Include="wwwroot\Scripts\local\jquery.i18n.parser.min.js" />
<None Include="wwwroot\Scripts\local\_extended\bs.js" />
<None Include="wwwroot\Scripts\local\_extended\dsb.js" />
<None Include="wwwroot\Scripts\local\_extended\fi.js" />
<None Include="wwwroot\Scripts\local\_extended\ga.js" />
<None Include="wwwroot\Scripts\local\_extended\he.js" />
<None Include="wwwroot\Scripts\local\_extended\hsb.js" />
<None Include="wwwroot\Scripts\local\_extended\hu.js" />
<None Include="wwwroot\Scripts\local\_extended\hy.js" />
<None Include="wwwroot\Scripts\local\_extended\la.js" />
<None Include="wwwroot\Scripts\local\_extended\ml.js" />
<None Include="wwwroot\Scripts\local\_extended\os.js" />
<None Include="wwwroot\Scripts\local\_extended\ru.js" />
<None Include="wwwroot\Scripts\local\_extended\sl.js" />
<None Include="wwwroot\Scripts\local\_extended\uk.js" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
Expand Down
2 changes: 1 addition & 1 deletion IRMA_onAir_Web/wwwroot/Content/Theme/css/style-main.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

.search-input {
width: 100%;
font-family: Arial, FontAwesome;
font-family: FontAwesome;
text-indent: 8px;
padding: 4px 0px;
}
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 iris-GmbH infrared intelligent sensors
Copyright (c) 2022 iris-GmbH infrared intelligent sensors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Note: For a full production deploy follow this [instruction](https://docs.micros
- Make sure, that a correct [ASP.NET Core 5.x Runtime](https://dotnet.microsoft.com/en-us/download/dotnet/5.0) is installed.
- Start the Command Prompt (Windows) or the Terminal (Linux).
- Change the path to where you extracted the repository.
- Launch the application with ```dotnet run --project "IRMA_onAir_Web"```
- Launch the application with ```dotnet IrmaWeb.dll```
- The application is now launched and can be accessed over the url that is displayed in console.

### Wiki Index
Expand Down
10 changes: 10 additions & 0 deletions Service/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
For further infos, you can follow this page: https://docs.microsoft.com/de-de/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-5.0

This file explains only how to setup a service quickly.

* Make a folder in "/var/dotnetwww/irmaonair_web"
* Download the application from Release tab and extract it in the folder mentioned before
* Download the "ioaweb.service" file from this folder and copy it into systemd. (sudo cp ioaweb.service /etc/systemd/system/ioaweb.service)
* Activate the systemd service (sudo systemctl enable ioaweb.service)
* Start the systemd service (sudo systemctl start ioaweb.service)
* Check if the service runs (sudo systemctl status ioaweb.service)
17 changes: 17 additions & 0 deletions Service/ioaweb.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[Unit]
Description=IRMA onAir Web ASP.NET Core 5.0 App

[Service]
WorkingDirectory=/var/dotnetwww/irmaonair_web
ExecStart=/usr/bin/dotnet /var/dotnetwww/irmaonair_web/IrmaWeb.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=dotnet-ioa
User=www-data
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false

[Install]
WantedBy=multi-user.target

0 comments on commit 4748383

Please sign in to comment.