#! /bin/sh

rm -rf /shared/*

cp -R /app/public/ /shared/

VERSION=$(sentry-cli releases propose-version)

sentry-cli releases new -p evemonk-backend "$VERSION"

sentry-cli releases set-commits --auto "$VERSION"

wait-for-it "redis:6379" -- echo "Redis up and running"

wait-for-it "memcached:11211" -- echo "Memcached up and running"

wait-for-it "postgresql:5432" -- echo "PostgreSQL up and running"

wait-for-it "elasticsearch:9200" -- echo "Elastic up and running"

bundle exec puma -C config/puma.rb

#! /bin/sh

rm -rf /shared/*

cp -R /app/public/ /shared/

VERSION=$(sentry-cli releases propose-version)

sentry-cli releases new -p evemonk-backend "$VERSION"

sentry-cli releases set-commits --auto "$VERSION"

sentry-cli releases deploys "$VERSION" new -e production

wait-for-it "redis:6379" -- echo "Redis up and running"

wait-for-it "memcached:11211" -- echo "Memcached up and running"

wait-for-it "postgresql:5432" -- echo "PostgreSQL up and running"

wait-for-it "elasticsearch:9200" -- echo "Elastic up and running"

bundle exec puma -C config/puma.rb

Configure sentry release + env
Configure sentry release + env
