Improve installation process

This commit is contained in:
magicfixin
2025-07-23 23:42:41 +02:00
committed by cryptogopher
parent e12369cea1
commit 5ffc6974f0
8 changed files with 115 additions and 44 deletions

View File

@@ -47,7 +47,7 @@ module FixinMe
# List of hosts this app is available at.
# https://guides.rubyonrails.org/configuring.html#actiondispatch-hostauthorization
config.hosts << 'localhost'
config.hosts += ['localhost', 'example.com', IPAddr.new('1.2.3.4/32')]
# Email address of admin account
config.admin = 'admin@localhost'

View File

@@ -2,7 +2,7 @@
# in your source code, provide the password or a full connection URL as an
# environment variable when you boot the app. For example:
#
# DATABASE_PASSWORD="some-password"
# DATABASE_PASSWORD="Some-password1%"
#
# or
#
@@ -29,22 +29,22 @@ default: &default
collation: utf8mb4_0900_as_ci
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username: fixinme
password:
password: Some-password1%
socket: /run/mysqld/mysqld.sock
production:
<<: *default
database: fixinme_production
database: fixinme
# Unless you're planning on developing the application, you can skip/remove
# Unless you're planning on developing the application, you can skip
# configurations for development and test databases altogether.
development:
<<: *default
database: fixinme_dev
#development:
# <<: *default
# database: fixinme_dev
# 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: fixinme_test
#test:
# <<: *default
# database: fixinme_test

View File

@@ -28,7 +28,7 @@ Rails.application.configure do
# config.assets.css_compressor = :sass
# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false
config.assets.compile = true
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.asset_host = "http://assets.example.com"