Skip to content

Commit 763ee3a

Browse files
committed
1 parent d701fd1 commit 763ee3a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ENV DB_PORT=""
1515
ENV DB_USERNAME=""
1616
ENV DB_PASSWORD=""
1717
ENV DB_DATABASE=""
18+
ENV DB_IS_AZURE=""
1819
ENV BIND_HOST="0.0.0.0"
1920
ENV BIND_PORT="80"
2021

rakelib/apply_db_config.rake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ task :apply_db_config do
3939
config[cur_env]["database"] = ENV["DB_DATABASE"]
4040
config[cur_env]["username"] = ENV["DB_USERNAME"]
4141
config[cur_env]["password"] = ENV["DB_PASSWORD"]
42+
config[cur_env]["azure"] = ENV["DB_IS_AZURE"].downcase == "true"
4243

4344
File.write(File.join(APP_ROOT, 'config', 'database.yml'), config.to_yaml)
4445
end

start.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export RAILS_ENV=$NOTES_ENV
55
[[ -z "$DATABASE_URL" ]] && unset DATABASE_URL
66
[[ -z "$BIND_HOST" ]] && BIND_HOST="0.0.0.0"
77
[[ -z "$BIND_PORT" ]] && BIND_PORT="80"
8+
[[ -z "$DB_IS_AZURE" || "${DB_IS_AZURE,,}" == "false" ]] && DB_IS_AZURE="false"
89

910
bundle exec rake apply_db_config
1011

0 commit comments

Comments
 (0)