generated from appdev-projects/rails-7-template
-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Oct 25, 2024
1 parent
0800cea
commit caadfed
Showing
4 changed files
with
23 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
set -o errexit | ||
|
||
# Ruby on Rails | ||
bundle exec puma -C config/puma.rb | ||
bundle exec rails server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,27 @@ | ||
if Object.const_defined?('RailsDb') | ||
RailsDb.setup do |config| | ||
# # enabled or not | ||
# config.enabled = Rails.env.development? | ||
# only enable the gem if environment variables are set for username and password | ||
if ENV.fetch("RAILS_DB_USERNAME", nil).present? && ENV.fetch("RAILS_DB_PASSWORD", nil).present? | ||
# enable | ||
config.enabled = true | ||
|
||
# # automatic engine routes mounting | ||
# config.automatic_routes_mount = true | ||
# automatic engine routes mounting | ||
config.automatic_routes_mount = true | ||
|
||
# set tables which you want to hide ONLY | ||
config.black_list_tables = ["ar_internal_metadata"] | ||
# set tables which you want to hide ONLY | ||
config.black_list_tables = ["ar_internal_metadata"] | ||
|
||
# set tables which you want to show ONLY | ||
# config.white_list_tables = ['posts', 'comments'] | ||
# Enable http basic authentication | ||
config.http_basic_authentication_enabled = true | ||
|
||
# # Enable http basic authentication | ||
# config.http_basic_authentication_enabled = false | ||
# Enable http basic authentication | ||
config.http_basic_authentication_user_name = ENV.fetch("RAILS_DB_USERNAME") | ||
|
||
# # Enable http basic authentication | ||
# config.http_basic_authentication_user_name = 'rails_db' | ||
|
||
# # Enable http basic authentication | ||
# config.http_basic_authentication_password = 'password' | ||
|
||
# # Enable http basic authentication | ||
# config.verify_access_proc = proc { |controller| true } | ||
|
||
# # Sandbox mode (only read-only operations) | ||
# config.sandbox = false | ||
# Enable http basic authentication | ||
config.http_basic_authentication_password = ENV.fetch("RAILS_DB_PASSWORD") | ||
else | ||
config.enabled = false | ||
config.automatic_routes_mount = false | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters