summaryrefslogtreecommitdiff
path: root/scalelite/bin/start
blob: 3840ee73504da8907c2b0569017c92982ecb06d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh



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