diff options
author | jfederico <jesus@123it.ca> | 2020-02-11 15:13:31 -0500 |
---|---|---|
committer | jfederico <jesus@123it.ca> | 2020-02-11 15:13:31 -0500 |
commit | 6bd5a574d96e352ba252f8242364057d787e6ed4 (patch) | |
tree | e575a8c195eddc2018aa8437e39e77a86f698e86 /scalelite/bin | |
parent | 52e276e023686949546de6099d50f436513dedc4 (diff) | |
download | scalelite-run-itzks-6bd5a574d96e352ba252f8242364057d787e6ed4.tar.gz scalelite-run-itzks-6bd5a574d96e352ba252f8242364057d787e6ed4.tar.bz2 scalelite-run-itzks-6bd5a574d96e352ba252f8242364057d787e6ed4.zip |
Updates for multiple entrypoints to same image
Diffstat (limited to 'scalelite/bin')
-rwxr-xr-x | scalelite/bin/start | 20 | ||||
-rwxr-xr-x | scalelite/bin/start-poller | 5 |
2 files changed, 23 insertions, 2 deletions
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 diff --git a/scalelite/bin/start-poller b/scalelite/bin/start-poller new file mode 100755 index 0000000..608e81c --- /dev/null +++ b/scalelite/bin/start-poller @@ -0,0 +1,5 @@ +#!/bin/sh + +echo "Poller is starting..." +exec tini -- bundle exec rake poll["$INTERVAL"] +#tail -f /dev/null |