Skip to content

Commit

Permalink
Update README.md for F# project structure and development instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
swuecho committed Jun 30, 2024
1 parent 7c2c01e commit 4623dbc
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions api/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
# dump
# F# project

pg_dump postgresql://hwu:[email protected]:5432/hwu --table diary > diary.sql
# project structure

# restore
*.fsproj: This is your project file, defining project settings, dependencies, and build configurations.

psql postgresql://hwu:[email protected]:5432/hwu -f diary.sql
Program.fs: This is the main entry point of your F# ASP.NET Core application

## tag and push to aliyun
# develop

```sh
dotnet restore
dotnet build
dotnet watch run
```
hwu@instance-1:~$ docker tag mcr.microsoft.com/dotnet/core/sdk:3.1-alpine registry.cn-shanghai.aliyuncs.com/bestqa/dotnet-core-sdk:3.1-alpine
hwu@instance-1:~$ docker push registry.cn-shanghai.aliyuncs.com/bestqa/dotnet-core-sdk:3.1-alpine
b7b554cc2a51: Pushed
4db87b5e5296: Pushed
742cf03e82dc: Pushed
6dd2e5075bbd: Pushed
8b11e2e6dac9: Pushed
b9dfc8eed8d6: Pushed
777b2c648970: Pushed
3.1-alpine: digest: sha256:f33d8a78fb0faee52b3eb0f29a3702f8e9b2a15bd63ce3093250bc2bf247f649 size: 1798
hwu@instance-1:~$ docker tag mcr.microsoft.com/dotnet/core/runtime:3.1-alpine registry.cn-shanghai.aliyuncs.com/bestqa/dotnet-core-runtime:3.1-alpine
hwu@instance-1:~$ docker push registry.cn-shanghai.aliyuncs.com/bestqa/dotnet-core-runtime:3.1-alpine
The push refers to repository [registry.cn-shanghai.aliyuncs.com/bestqa/dotnet-core-runtime]
8b11e2e6dac9: Mounted from bestqa/dotnet-core-sdk
b9dfc8eed8d6: Mounted from bestqa/dotnet-core-sdk
777b2c648970: Mounted from bestqa/dotnet-core-sdk
3.1-alpine: digest: sha256:e751d1e51d5ed001f5f1b7b1ae009177ed3a15c7bf7773212a5ab339c2b8f3cd size: 951
```

## Port

in prod, default port is 8080 (aspnet 8), 80 (aspnet < 8).
in dev, default port is 500

0 comments on commit 4623dbc

Please sign in to comment.