From 6bd5a574d96e352ba252f8242364057d787e6ed4 Mon Sep 17 00:00:00 2001 From: jfederico Date: Tue, 11 Feb 2020 15:13:31 -0500 Subject: Updates for multiple entrypoints to same image --- scalelite/bin/start | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'scalelite/bin/start') diff --git a/scalelite/bin/start b/scalelite/bin/start index 3a27841..3840ee7 100755 --- a/scalelite/bin/start +++ b/scalelite/bin/start @@ -1,5 +1,21 @@ -#!/bin/bash +#!/bin/sh -bundle exec puma -C config/puma.rb + + +servers="$(RAILS_ENV=$RAILS_ENV bundle exec rake servers 2>&1)" +echo $servers + +if [ "$(echo "$servers" | cut -c0-2)" == "No" ]; then + echo ">>> Add test-install as the default server" + bundle exec rake servers:add["https://test-install.blindsidenetworks.com/bigbluebutton/api","8cd8ef52e8e101574e400365b55e11a6"] + bundle exec rake servers + bundle exec rake status +else + echo ">>> Do nothing" +fi + + +exec tini -- bundle exec puma -C config/puma.rb "$@" #tail -f /dev/null +#bundle exec puma -C config/puma.rb #bundle exec rails s -b 0.0.0.0 -p 3000 -- cgit v1.2.3