Skip to content

Commit

Permalink
force rm tmp/cache even on fresh start
Browse files Browse the repository at this point in the history
  • Loading branch information
dmou committed Jul 7, 2021
1 parent 8e90598 commit f5f51cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ jobs:
run: |
DEPLOY_ENV=test docker-compose -f docker-compose.yml -f docker-test.yml up -d
until curl --silent -I -f --fail http://localhost:3000 ; do printf .; sleep 1; done
docker-compose exec -T api rm -r tmp/cache tmp/cache1 tmp/cache2 tmp/cache3 tmp/cache4 tmp/cache5 || true
docker-compose exec -T api mkdir -p tmp/cache tmp/cache1 tmp/cache2 tmp/cache3 tmp/cache4 tmp/cache5
docker-compose exec -T api test/setup-parallel-env.sh
docker-compose exec -T api bundle exec rake assets:precompile
Expand Down
6 changes: 3 additions & 3 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ set_config() {
}

if [[ "${DEPLOY_ENV}" == "test" ]]; then
set_config
touch tmp/parallel_runtime_test.log
chmod +w tmp/parallel_runtime_test.log
set_config
touch tmp/parallel_runtime_test.log
chmod +w tmp/parallel_runtime_test.log
fi

# Rake tasks
Expand Down

0 comments on commit f5f51cc

Please sign in to comment.