RootSearch server is a server for RootSearch search engine.
RootSearch server is in development on .NET 5.0
RootSearch depends on Redis.
RootSearch can also running on Docker.
appsettings.json
example.
{
"Kestrel": {
"Endpoints": {
"HttpsDefaultCert": {
"Url": "Url for api server (e.g. https://0.0.0.0:5001)"
}
},
"Certificates": {
"Default": {
"Path": "SSL key path (e.g. my-key.pfx)",
"Password": "SSL key password"
}
}
},
"RedisSettings": {
"Host": "Host for redis server",
"Port": "Port number for redis server"
},
"SearchEngineApiSettings": {
"GoogleCustomSearchApiSettings": {
"ApiKey": "Google custom search api key",
"Cx": "Google Custom search engine ID"
}
}
}
{
"SearchEngineApiSettings": {
"GoogleCustomSearchApiSettings": {
"ApiKey": "Google custom search api key",
"Cx": "Google Custom search engine ID"
}
}
}
docker build -t {image name} .
docker run --name {container name} -d -p {hostPort:innerPort} {image name}
TODO: docker compose
# see https://dev.to/alrobilliard/deploying-net-core-to-heroku-1lfe
heroku container:login
docker build -t {image name} .
heroku container:push -a {image name} web
heroku container:release -a {image name} web
# for logs
heroku logs --app {image name} --tail
# You can skip this step if you already migrated from .NET Core 3.1 to .NET 5.0
dotnet nuget locals --clear all
dotnet restore
dotnet run apiserver