Skip to content

Commit bd56d3b

Browse files
committed
scripts updates
1 parent 4741538 commit bd56d3b

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

scripts/deploy.template.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,16 @@ mkdir /app && cd /app
2525
dotnet nuget list client-cert
2626

2727
# Create base webApp
28-
dotnet new webApp -o myOracleQuickstartWebApp --no-https --no-restore
28+
dotnet new ${dotnet_standard_type} -o myOracleQuickstartWebApp --no-https --no-restore
2929

30-
# Publish app to be ready to run as a service
30+
## Customize standard WebApp
3131
cd myOracleQuickstartWebApp
32+
sed -i 's/Welcome/${dotnet_custom_text_for_standard_webapp}/g' Pages/Index.cshtml
33+
34+
# Optional git repo
35+
# git clone ${dotnet_git_custom_webapp} myOracleQuickstartWebApp
36+
# cd myOracleQuickstartWebApp
37+
38+
# Publish app to be ready to run as a service - Linux X86, Linux X64, Linux ARM32, Linux ARM64
3239
dotnet restore
33-
dotnet publish --configuration Release
40+
dotnet publish --configuration Release --runtime linux-x64 --self-contained true -p:PublishReadyToRun=true

scripts/setup.template.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ apt-get update; \
2323
apt-get install -y dotnet-sdk-5.0
2424

2525
# Install the DotNet runtime
26-
pt-get update; \
26+
apt-get update; \
2727
apt-get install -y apt-transport-https && \
2828
apt-get update && \
2929
apt-get install -y aspnetcore-runtime-5.0
3030

3131
######################################
32-
echo "Finished running setup.sh"
32+
echo "Finished running setup.sh"

0 commit comments

Comments
 (0)