FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SimplCommerce/simpl-build.sh at master · simplcommerce/SimplCommerce · GitHub
simplcommerce
SimplCommerce
Repository navigation
Code
Issues
160
(160)
Pull requests
13
(13)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
SimplCommerce
/
simpl-build.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
18 lines (13 loc) · 1001 Bytes
Breadcrumbs
SimplCommerce
/
simpl-build.sh
Copy path
File metadata and controls
executable file
·
18 lines (13 loc) · 1001 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!
/bin/bash
set
-e
sed -i
'
'
-e
'
s|<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.0" />|<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="6.0.0" />|
'
src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj
sed -i
'
'
-e
'
s/ConfigureService();/AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);\nConfigureService();/
'
src/SimplCommerce.WebHost/Program.cs
sed -i
'
'
-e
'
s/UseSqlServer/UseNpgsql/
'
src/SimplCommerce.WebHost/Program.cs
sed -i
'
'
-e
'
s/UseSqlServer/UseNpgsql/
'
src/SimplCommerce.WebHost/Extensions/ServiceCollectionExtensions.cs
rm -rf src/SimplCommerce.WebHost/Migrations/
*
dotnet restore
&&
dotnet build
cd
src/SimplCommerce.WebHost \
&&
dotnet ef migrations add initialSchema \
&&
dotnet ef database update
echo
"
The database schema has been created. Please execute the src/Database/StaticData_Postgres.sql to insert static data.
"
echo
"
Then type 'dotnet run' in src/SimplCommerce.WebHost to start the app.
"
Back
|
FazBrowse Home
|
New Git URL