Use different redis port for tests (#15474)

* use different redis port for tests
pull/15167/head
ibrahim menem 5 years ago committed by GitHub
parent 4d7c96c0f9
commit 1e056e974f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -808,7 +808,7 @@ test:
http_port: 53716
redis:
host: '127.0.0.1'
port: 6379
port: 6335
enforce_non_empty_layer_css: false
api_requests_es_service:
url: "http://api-calls-service.localhost.lan/search"

@ -4,8 +4,9 @@ cd /cartodb
mkdir -p log && chmod -R 777 log/
createdb -T template0 -O postgres -h localhost -U postgres -E UTF8 template_postgis || true
psql -h localhost -U postgres template_postgis -c 'CREATE EXTENSION IF NOT EXISTS postgis;CREATE EXTENSION IF NOT EXISTS postgis_topology;'
RAILS_ENV=development bundle exec rake db:drop || true
RAILS_ENV=test bundle exec rake cartodb:test:prepare
RAILS_ENV=development bundle exec rake db:create
RAILS_ENV=development bundle exec rake db:migrate
REDIS_PORT=6335 RAILS_ENV=development bundle exec rake db:drop || true
REDIS_PORT=6335 RAILS_ENV=test bundle exec rake cartodb:test:prepare
REDIS_PORT=6335 RAILS_ENV=development bundle exec rake db:create
REDIS_PORT=6335 RAILS_ENV=development bundle exec rake db:migrate
cd -

Loading…
Cancel
Save