summaryrefslogtreecommitdiff
path: root/scalelite/bin/start
diff options
context:
space:
mode:
authorjfederico <jesus@123it.ca>2020-04-25 09:58:29 -0400
committerjfederico <jesus@123it.ca>2020-04-27 22:44:34 -0400
commita6e93f19e3147e2e21d4a838e6e232c9a99f8684 (patch)
tree620036dbe7e93800a8b1140c5b4990275eba45c7 /scalelite/bin/start
parente3683c4abdd6abb055eee83b6d412c2dcf1ac8ff (diff)
downloadscalelite-run-itzks-a6e93f19e3147e2e21d4a838e6e232c9a99f8684.tar.gz
scalelite-run-itzks-a6e93f19e3147e2e21d4a838e6e232c9a99f8684.tar.bz2
scalelite-run-itzks-a6e93f19e3147e2e21d4a838e6e232c9a99f8684.zip
Added new version
Updated init-letsencrypt updated init-letsencrypt with docker-compose-init updated init-letsencrypt with docker-compose-init restored init-letsencrypt updates to certbot updates to certbot updates to certbot updates to certbot updates to certbot updates to certbot updates to certbot added certbot to scalelite-nginx fixed settings for acme-challenge added blacklist updated init-letsencrypt for working with scaleite-nginx Removed unnecessary files percisted certbot logs and added env options to init-letsencrypt
Diffstat (limited to 'scalelite/bin/start')
-rwxr-xr-xscalelite/bin/start34
1 files changed, 0 insertions, 34 deletions
diff --git a/scalelite/bin/start b/scalelite/bin/start
deleted file mode 100755
index 2887034..0000000
--- a/scalelite/bin/start
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-if [ "$LOADBALNCER_SECRET" == "loadbalancer_secret" ] || [ "$SECRET_KEY_BASE" == "secret_key_base" ]; then
- echo "ERROR: Detected default SECRET_KEY_BASE or LOADBALANCER_SECRET. Please generate a random value."
- echo "Exiting..."
- exit 1
-fi
-
-servers="$(RAILS_ENV=$RAILS_ENV bundle exec rake servers 2>&1)"
-echo $servers
-
-if [ "$RAILS_ENV" = "production" ] && [ "$DB_ADAPTER" = "postgresql" ]; then
- while ! curl http://$DB_HOST:${DB_PORT:-5432}/ 2>&1 | grep '52'
- do
- echo "Waiting for postgres to start up ..."
- sleep 1
- done
-fi
-
-db_create="$(RAILS_ENV=$RAILS_ENV bundle exec rake db:create 2>&1)"
-echo $db_create
-
-if [[ $db_create == *"already exists"* ]]; then
- echo ">>> Database migration"
- bundle exec rake db:migrate
-else
- echo ">>> Database initialization"
- bundle exec rake db:schema:load
-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