Skip to content

Commit

Permalink
Customize FreeTDS configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
andyundso committed Jan 14, 2025
1 parent fb6a675 commit 0dd5eac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ FROM ruby:3.4.1-alpine AS app

ENV RAILS_ENV="production" \
BUNDLE_PATH="/usr/local/bundle" \
BUNDLE_WITHOUT="development test"
BUNDLE_WITHOUT="development test" \
FREETDSCONF=/work/freetds.conf

WORKDIR /work

Expand Down
3 changes: 3 additions & 0 deletions bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ sleep 5

bundle exec rails db:migrate || bundle exec rails db:setup

touch /tmp/debug.log
tail -f /tmp/debug.log &

bundle exec puma
3 changes: 3 additions & 0 deletions freetds.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[global]
dump file = /tmp/debug.log
debug flags = 0x3008

0 comments on commit 0dd5eac

Please sign in to comment.