Skip to content

Commit f6f9a19

Browse files
committed
deploy script updated
1 parent ae489d1 commit f6f9a19

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

scripts/deploy.template.sh

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,26 @@
88
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
99
#
1010

11-
mkdir /app
12-
cd /app
11+
# Stop script on NZEC
12+
set -e
13+
# Stop script if unbound variable found
14+
set -u
15+
# This is causing it to fail
16+
set -o pipefail
17+
18+
# Set Variables for DotNet CLI
19+
export HOME=/root
1320
export DOTNET_CLI_HOME=/root
14-
dotnet new webApp -o myWebApp --no-https
15-
cd myWebApp
16-
# dotnet run --urls "http://*:5000"
21+
export DOTNET_CLI_TELEMETRY_OPTOUT=true
22+
23+
# Prepare App folder
24+
mkdir /app && cd /app
25+
dotnet nuget list client-cert
26+
27+
# Create base webApp
28+
dotnet new webApp -o myOracleQuickstartWebApp --no-https --no-restore
29+
30+
# Publish app to be ready to run as a service
31+
cd myOracleQuickstartWebApp
32+
dotnet restore
1733
dotnet publish --configuration Release

0 commit comments

Comments
 (0)