Nowa instalacja
1 Prerequisites
Required
- Newest Windows Server with all security updates
- Web Server IIS
- SQL SERVER 2016 Sp2 Express or Access to SQL SERVER instance
- .NET CORE 7 (Hosting bundle for server)
- GIT SCM
- Optional SSL FREE SSL for HTTPS https://www.win-acme.com/
2 Installation Steps
- IIS Utworzyć aplikacje
- IIS Dodać binding np test.platformaerp.com
- IIS Ustawić Application pool
- .NET CLR: No Managad Code (ASP.NET Core runs in a separate process and manages the runtime. ( application pool setting ))
- Start Mode: AlwaysRunning
- User: localsystem
- Rozpakować wersje do folderu
- Zmienić nazwę pliku appsettings.template na appsettings.json wprowadzić odpowiednie zmiany
- (jelsi istnieje juz baza danych )wprowadzić konfiguracje w app.hosting
- hosting_domain np
test.platformaerp.com
- hosting_db
- hosting_server
- hosting_email
- hosting_status = 2
- hosting_datastore
- hosting_dsn
- hosting_domain np
- zalogować się na
hosting_domain
kliknac przypomnij hasło
3 SQL SERVER
- Restore bazy danych ( system utworzy sam baze jesli nowa) backup jest w wersji 13.00'select @@version'
- dodać użytkownika SQL
- upewnic sie ze baza ma Server authentication: SQL Server and Windows Authentication mode (wymagany restart)
- Zmienic tabelkę
[dbo].[hosting]
4 Pierwsze uruchomienie
{{host}}/api/core/system
jesli nie sa ustawione zmienne
- kv.v.api.url = _host.hosting_domain
- zakładany jest uzytkownik = _host.hosting_email
- kv.v.api.owner.name = _host.hosting_company
- Parametryzacja
- kv.v.owner.language = PL < zmiana na jezyk polski
Troubleshoting
- static compression and dynamic compression must be disabled
- run browser local on the server there will be additional messages
- Check net core version, try manually launch
Bash | |
---|---|
- Troubleshot An error occurred while starting the application https://scottsauber.com/2017/04/10/how-to-troubleshoot-an-error-occurred-while-starting-the-application-in-asp-net-core-on-iis/
- Uwaga przy deploy teamcity web.config jest generowany blednie multiple arguments tak powinno wygladac poprawnie
<aspNetCore processPath="dotnet" arguments=".\platformaAPI.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" />