-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README.md for F# project structure and development instructions
- Loading branch information
Showing
1 changed file
with
14 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |