update Readme and specify application port
This commit is contained in:
parent
d2a7ccbc75
commit
fcb1f741b9
3 changed files with 26 additions and 21 deletions
30
README.md
30
README.md
|
|
@ -1,39 +1,29 @@
|
|||
# Stitch a Ton
|
||||
Solution by Meizar (meizar.rimadana@formulatrix.com)
|
||||
|
||||
|
||||
## Requirement
|
||||
## Requirements
|
||||
- .Net SDK 6.0
|
||||
- OpenCVSharp4 4.11
|
||||
|
||||
## Setup
|
||||
- Change the environment variables `ASSET_PATH_RO` in `WebApp/Properties/launchSettings.json`
|
||||
- Http port can be changed as needed
|
||||
|
||||
## Publish and Run
|
||||
Publish with targeting `linux-arm64` runtime
|
||||
## Publish
|
||||
Publish te project with targeting `linux-arm64` runtime and `self-contained`
|
||||
```
|
||||
cd ./WebApp
|
||||
dotnet publish -r linux-arm64 -c release --self-contained
|
||||
```
|
||||
|
||||
Go to the publish folder
|
||||
Transfer this published folder into Raspberry Pi
|
||||
```
|
||||
cd bin/release/net6.0/linux-arm64/publish
|
||||
bin/release/net6.0/linux-arm64/publish
|
||||
```
|
||||
|
||||
## Run
|
||||
On the Raspberry Pi, go to the uploaded folder.
|
||||
Make it executable
|
||||
```
|
||||
chmod +x WebApp
|
||||
sudo chmod +x WebApp
|
||||
```
|
||||
|
||||
Run
|
||||
Run the program
|
||||
```
|
||||
./WebApp
|
||||
```
|
||||
|
||||
Or, if the OpenCV4 has been installed, just run it
|
||||
```
|
||||
cd WebApp
|
||||
dotnet run
|
||||
sudo ./WebApp
|
||||
```
|
||||
|
|
@ -4,5 +4,13 @@
|
|||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"Kestrel": {
|
||||
"EndPoints": {
|
||||
"Http": {
|
||||
"Url": "http://0.0.0.0:80"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,5 +5,12 @@
|
|||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
"AllowedHosts": "*",
|
||||
"Kestrel": {
|
||||
"EndPoints": {
|
||||
"Http": {
|
||||
"Url": "http://0.0.0.0:80"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue