# ISN FIXME ````log NU1301: Failed to retrieve information about 'xxx' from remote source 'https://isn.pschneider.fr/nupkg/xxx/index.json'. ```` ## Usage ````sh dotnet user-secrets set ConnectionStrings:DefaultConnection "Server=;Port=;Database=;Username=;Password=;" isnd& # get an api-key from isn push -k -s http://localhost:5000/index.json your-lame-versionned.nupkg wget http://localhost:5000/package/index.json?q=your&prerelease=true&semVerLevel=2.0.0 ```` ## Installation Depuis le dossier de la solution, compiler la solution : ````bash dotnet build /restore -c Release dotnet publish -c Release ```` ### Déploiement ````bash sudo mkdir -p /srv/www/isnd sudo cp -a src/isnd/bin/Release/net6.0/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 sudo systemctl start isnd ```` * Activation du serveur : ````bash sudo systemctl enable isnd ```` ### Installation du client ````bash sudo mkdir /usr/local/lib/isn sudo cp -a src/isn/bin/Release/net6.0/* /usr/local/lib/isn sudo chown -R root.root /usr/local/lib/isn sudo ln -s /usr/local/lib/isn/isn /usr/local/bin/isn ```` ### Mises à jour ````bash set -e # compiler tout dotnet build -c Release dotnet publish -c Release -f net6.0 src/isnd # MAJ du serveur sudo systemctl stop isnd sudo cp -a src/isnd/bin/Release/net6.0/publish/* /srv/www/isnd sudo systemctl start isnd # MAJ du client sudo cp -a src/isn/bin/Release/net6.0/* /usr/local/lib/isn sudo chown -R root.root /usr/local/lib/isn ````