diff --git a/src/web_app_skeleton/config/database.cr.ecr b/src/web_app_skeleton/config/database.cr.ecr index c8813883..3b580e3d 100644 --- a/src/web_app_skeleton/config/database.cr.ecr +++ b/src/web_app_skeleton/config/database.cr.ecr @@ -7,6 +7,7 @@ AppDatabase.configure do |settings| settings.url = ENV["DATABASE_URL"]? || Avram::PostgresURL.build( database: database_name, hostname: ENV["DB_HOST"]? || "localhost", + port: ENV["DB_PORT"]? || "5432", # Some common usernames are "postgres", "root", or your system username (run 'whoami') username: ENV["DB_USERNAME"]? || "postgres", # Some Postgres installations require no password. Use "" if that is the case.