This commit is contained in:
parent
6d48a9e9f4
commit
f3a256f8d6
3 changed files with 15 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
||||||
REPO=harbor.hq.rosti.cz/rosti/runtime
|
REPO=harbor.hq.rosti.cz/rosti/runtime
|
||||||
DOCKER=docker
|
DOCKER=docker
|
||||||
VERSION=2022.04-1
|
VERSION=2022.05-1
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
|
|
10
examples/default/nginx.conf
Normal file
10
examples/default/nginx.conf
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
server {
|
||||||
|
listen 8000;
|
||||||
|
|
||||||
|
root /srv/app/;
|
||||||
|
index index.html;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
}
|
||||||
|
}
|
|
@ -41,7 +41,7 @@ function setTech() {
|
||||||
echo "NOTE: /srv/app doesn't exists, creating it from $tech example application"
|
echo "NOTE: /srv/app doesn't exists, creating it from $tech example application"
|
||||||
mkdir -p /srv/app
|
mkdir -p /srv/app
|
||||||
cp -a /opt/examples/$name/* /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
|
else
|
||||||
echo "IMPORTANT: /srv/app found so no configuration or files are copied, make sure the application is ok after this process"
|
echo "IMPORTANT: /srv/app found so no configuration or files are copied, make sure the application is ok after this process"
|
||||||
fi
|
fi
|
||||||
|
@ -198,6 +198,9 @@ function quickTech() {
|
||||||
"redis")
|
"redis")
|
||||||
setService $TECH
|
setService $TECH
|
||||||
;;
|
;;
|
||||||
|
"default")
|
||||||
|
setTech $TECH
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue