Passenger for Ruby
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Adam Štrauch 2023-11-25 03:00:21 +01:00
parent bef7e0a2c7
commit 940d2b7f01
Signed by: cx
GPG Key ID: 7262DAFE292BCE20
6 changed files with 78 additions and 84 deletions

View File

@ -3,9 +3,8 @@
version: '3'
vars:
GREETING: Hello, World!
REPO: harbor.hq.rosti.cz/rosti/runtime
VERSION: 2023.08-1
VERSION: 2023.12-1
BASEIMAGE: debian:bookworm
tasks:

View File

@ -18,3 +18,6 @@ cd ruby-$VERSION
./configure --prefix=/opt/techs/ruby-$VERSION
make -j
make install
/opt/techs/ruby-${VERSION}/bin/gem update --system
/opt/techs/ruby-${VERSION}/bin/gem install passenger

File diff suppressed because one or more lines are too long

65
examples/ruby/index.html Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
[program:app]
command=/srv/bin/primary_tech/ruby app.rb
command=passenger start --port 8000 --log-file /dev/stdout --pid-file /srv/run/passenger.pid
environment=PATH="/srv/bin/primary_tech:/usr/local/bin:/usr/bin:/bin:/srv/.npm-packages/bin"
stopasgroup=true
directory=/srv/app

View File

@ -110,6 +110,14 @@ function setTech() {
echo ".. app configuration for nginx not found, adding it - please check /srv/conf/nginx.d/app.conf and make sure it fits your code"
fi
if [ "$name" = "ruby" ]; then
mkdir -p /srv/app/public
rm /srv/conf/nginx.d/app.conf
mv /srv/app/index.html /srv/app/public/index.html
rm -rf /srv/conf/nginx.d
rm -f /srv/conf/supervisor.d/nginx.conf
fi
# We load new configuration into supervisor and it's automatically started or restarted if needed
supervisorctl reread
supervisorctl update