2021-07-05 21:46:18 +01:00
# ISN
[](http://gitlab.pschneider.fr/Paul/nuget-host/-/commits/main)
## Usage
2021-04-08 02:03:17 +01:00
````sh
2021-05-14 21:48:01 +01:00
dotnet user-secrets set ConnectionStrings:DefaultConnection "Server=<lame-pgserver>;Port=<lame-pgport>;Database=<lame-dbname>;Username=<lame-dbusername>;Password=<lame-dbpass>;"
2021-07-05 12:55:52 +01:00
isnd&
2021-05-14 21:48:01 +01:00
# get an api-key from <http://localhost:5000/ApkKeys>
2021-07-05 12:55:52 +01:00
isn push -k <lame-api-key> -s http://localhost:5000/packages your-lame-versionned.nupkg
2021-04-08 02:03:17 +01:00
````
2021-07-05 21:24:37 +01:00
2021-07-11 18:07:45 +01:00
## Installation
2021-07-05 21:24:37 +01:00
2021-07-11 18:07:45 +01:00
Depuis le dossier de la solution, compiler la solution :
2021-07-05 21:24:37 +01:00
````bash
dotnet build /restore
dotnet publish -c Release
````
Déployer le serveur :
````bash
sudo cp -a src/isnd/bin/Release/netcoreapp2.1/publish/ /srv/www/isnd
sudo cp contrib/isnd /etc/init.d/isnd
sudo chmod +x /etc/init.d/isnd
sudo chown -R www-data.www-data /srv/www/isnd
sudo systemctl daemon-reload
````
* Créer une base de donées Postgresql,
* ajuster un fichier de configuration `/srv/www/isnd/appsettings.Production.json`
* Démarrer le serveur :
````bash
2021-07-11 18:07:45 +01:00
sudo systemctl enable isnd
2021-07-05 21:24:37 +01:00
````
Installer le client :
````bash
sudo cp -a src/isn/bin/Release/net472/ /usr/local/lib/isn
sudo chown -R root.root /usr/local/lib/isn
sudo chmod +x /usr/local/lib/isn/isn.exe
sudo cp contrib/isn /usr/local/bin
sudo chmod +x /usr/local/bin
sudo chown root.root /usr/local/bin/isn
````