Init dump
This commit is contained in:
@@ -28,6 +28,8 @@ module Railsondocker
|
||||
# Common ones are `templates`, `generators`, or `middleware`, for example.
|
||||
config.autoload_lib(ignore: %w[assets tasks])
|
||||
|
||||
config.autoload_paths += %W(#{config.root}/app/form_builders)
|
||||
|
||||
# Configuration for the application, engines, and railties goes here.
|
||||
#
|
||||
# These settings can be overridden in specific environments using the files
|
||||
|
||||
+24
-10
@@ -13,16 +13,30 @@
|
||||
# gem "pg"
|
||||
#
|
||||
default: &default
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
adapter: sqlserver
|
||||
mode: dblib
|
||||
# For details on connection pooling, see Rails configuration guide
|
||||
# https://guides.rubyonrails.org/configuring.html#database-pooling
|
||||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
||||
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
database: railsondocker_development
|
||||
dev_tools:
|
||||
<<: *default
|
||||
host: db
|
||||
database: dev_tools_dev
|
||||
username: sa
|
||||
password: Br1tt0nPassw0rd
|
||||
vhcs:
|
||||
<<: *default
|
||||
# host: 10.41.82.72 #Prod
|
||||
host: 10.41.82.73 #Dev
|
||||
port: 1433
|
||||
database: VHCS_HIPAA
|
||||
username: BSTI
|
||||
password: BSTIBOY
|
||||
database_tasks: false
|
||||
tds_version: 7.3
|
||||
|
||||
# The specified database role being used to connect to PostgreSQL.
|
||||
# To create additional roles in PostgreSQL see `$ createuser --help`.
|
||||
@@ -54,9 +68,9 @@ development:
|
||||
# Warning: The database defined as "test" will be erased and
|
||||
# re-generated from your development database when you run "rake".
|
||||
# Do not set this db to the same as development or production.
|
||||
test:
|
||||
<<: *default
|
||||
database: railsondocker_test
|
||||
# test:
|
||||
# <<: *default
|
||||
# database: railsondocker_test
|
||||
|
||||
# As with config/credentials.yml, you never want to store sensitive information,
|
||||
# like your database password, in your source code. If your source code is
|
||||
@@ -78,6 +92,6 @@ test:
|
||||
# Read https://guides.rubyonrails.org/configuring.html#configuring-a-database
|
||||
# for a full overview on how database connection configuration can be specified.
|
||||
#
|
||||
production:
|
||||
<<: *default
|
||||
url: <%= ENV['DATABASE_URL'] %>
|
||||
# production:
|
||||
# <<: *default
|
||||
# url: <%= ENV['DATABASE_URL'] %>
|
||||
|
||||
@@ -44,7 +44,7 @@ Rails.application.configure do
|
||||
# caching is enabled.
|
||||
config.action_mailer.perform_caching = false
|
||||
|
||||
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
|
||||
config.action_mailer.default_url_options = { host: "localhost", port: 3002 }
|
||||
|
||||
# Print deprecation notices to the Rails logger.
|
||||
config.active_support.deprecation = :log
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# config/initializers/action_view.rb
|
||||
Rails.application.config.to_prepare do
|
||||
ActionView::Base.default_form_builder = TailwindFormBuilder
|
||||
end
|
||||
+3
-1
@@ -24,10 +24,12 @@ threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)
|
||||
threads threads_count, threads_count
|
||||
|
||||
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
||||
port ENV.fetch("PORT", 3000)
|
||||
port ENV.fetch("PORT", 3002)
|
||||
|
||||
# Allow puma to be restarted by `bin/rails restart` command.
|
||||
plugin :tmp_restart
|
||||
|
||||
plugin :tailwindcss
|
||||
|
||||
# Only use a pidfile when requested
|
||||
pidfile ENV["PIDFILE"] if ENV["PIDFILE"]
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
Rails.application.routes.draw do
|
||||
resources :employer_setup, only: [:new, :create]
|
||||
get "welcome/index"
|
||||
|
||||
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
|
||||
|
||||
Reference in New Issue
Block a user