Default app fix
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Adam Štrauch 2022-05-02 13:57:24 +02:00
parent 6d48a9e9f4
commit f3a256f8d6
Signed by: cx
GPG Key ID: 018304FFA8988F8D
3 changed files with 15 additions and 2 deletions

View File

@ -1,6 +1,6 @@
REPO=harbor.hq.rosti.cz/rosti/runtime
DOCKER=docker
VERSION=2022.04-1
VERSION=2022.05-1
all: build

View File

@ -0,0 +1,10 @@
server {
listen 8000;
root /srv/app/;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}

View File

@ -41,7 +41,7 @@ function setTech() {
echo "NOTE: /srv/app doesn't exists, creating it from $tech example application"
mkdir -p /srv/app
cp -a /opt/examples/$name/* /srv/app/
mv /srv/app/supervisor.conf /srv/conf/supervisor.d/$name.conf
test $name -eq "default" || mv /srv/app/supervisor.conf /srv/conf/supervisor.d/$name.conf
else
echo "IMPORTANT: /srv/app found so no configuration or files are copied, make sure the application is ok after this process"
fi
@ -198,6 +198,9 @@ function quickTech() {
"redis")
setService $TECH
;;
"default")
setTech $TECH
;;
esac
}