Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/sidekiq #221

Merged
merged 2 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/dev
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#MAINTAINER Kaio Magalhaes, Inc.

touch .env
docker-compose up -d
docker compose up -d
docker exec -it backstage-api bash
4 changes: 2 additions & 2 deletions bin/pull_prod_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if [ -f ./latest.dump ]; then
rm ./latest.dump
fi

docker-compose up -d
docker compose up -d
docker stop backstage-api
docker stop backstage-sidekiq
heroku pg:backups:capture --app prod-backstage-api
Expand All @@ -11,4 +11,4 @@ docker exec -it backstage-db psql -U postgres -c 'DROP DATABASE IF EXISTS backst
docker exec -it backstage-db psql -U postgres -c "CREATE DATABASE backstage_development"
docker exec -it backstage-db psql -U postgres backstage_development -c "CREATE SCHEMA IF NOT EXISTS heroku_ext AUTHORIZATION postgres"
docker exec -it backstage-db pg_restore --verbose --clean --if-exists --no-acl --no-owner -U postgres -d backstage_development /app/latest.dump
sh bin/dev
sh bin/dev
4 changes: 2 additions & 2 deletions config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Sidekiq.configure_server do |config|
config.redis = {
url: ENV.fetch('REDIS_URL', nil),
size: 10
ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE }
}

config.on(:startup) do
Expand All @@ -26,6 +26,6 @@
Sidekiq.configure_client do |config|
config.redis = {
url: ENV.fetch('REDIS_URL', nil),
size: 1
ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE }
}
end
Loading