|
2 years ago | |
---|---|---|
.vs/isn/xs | 2 years ago | |
.vscode | 2 years ago | |
contrib | 3 years ago | |
src | 2 years ago | |
test | 2 years ago | |
.build | 2 years ago | |
.gitignore | 2 years ago | |
.gitlab-ci.yml | 2 years ago | |
GitVersion.yml | 2 years ago | |
LICENSE | 3 years ago | |
README.md | 2 years ago | |
dotnet-tools.json | 2 years ago | |
isn.sln | 2 years ago |
README.md
ISN
Usage
dotnet user-secrets set ConnectionStrings:DefaultConnection "Server=<lame-pgserver>;Port=<lame-pgport>;Database=<lame-dbname>;Username=<lame-dbusername>;Password=<lame-dbpass>;"
isnd&
# get an api-key from <http://localhost:5000/ApkKeys>
isn push -k <lame-api-key> -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 :
dotnet build /restore -c Release
dotnet publish -c Release
Déployer le serveur
sudo mkdir -p /srv/www/isnd
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 :
sudo systemctl start isnd
- Activer le serveur :
sudo systemctl enable isnd
Installer le client
sudo mkdir /usr/local/lib/isn
sudo cp -a src/isn/bin/Release/netcoreapp2.1/* /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
# compiler tout
dotnet build -c Release
dotnet publish -c Release -f netcoreapp2.1 src/isnd
# MAJ du serveur
sudo systemctl stop isnd
sudo cp -a src/isnd/bin/Release/netcoreapp2.1/publish/* /srv/www/isnd
sudo systemctl start isnd
# MAJ du client
sudo cp -a src/isn/bin/Release/netcoreapp2.1/* /usr/local/lib/isn
sudo chown -R root.root /usr/local/lib/isn