6325acd183
* update db:schema due to migration * reduce default concurrency for redis connection limit * Allow auto update packages in the development mode without building image * add sidekiq support to docker-compose * Pass sidekiq cofig file * passed the env file in base image rather than separately in rails, web packer and sidekiq in docker-compose * removed un-necessary changes in schema * changed concurrency to finer values * removed default size set in sidekiq redis config * Added the sidekiq config option in Procfile.dev Co-authored-by: Sony Mathew <ynos1234@gmail.com>
30 lines
484 B
Bash
Executable file
30 lines
484 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -x
|
|
|
|
# Remove a potentially pre-existing server.pid for Rails.
|
|
rm -rf /app/tmp/pids/server.pid
|
|
rm -rf /app/tmp/cache/*
|
|
|
|
echo "Waiting for postgres to become ready...."
|
|
|
|
PGPASSWORD=$POSTGRES_PASSWORD
|
|
PSQL="pg_isready -h $POSTGRES_HOST -p 5432 -U $POSTGRES_USERNAME"
|
|
until $PSQL
|
|
do
|
|
sleep 2;
|
|
done
|
|
|
|
echo "Database ready to accept connections."
|
|
|
|
bundle install
|
|
|
|
BUNDLE="bundle check"
|
|
|
|
until $BUNDLE
|
|
do
|
|
sleep 2;
|
|
done
|
|
|
|
# Execute the main process of the container
|
|
exec "$@"
|