feat: Use application name from .env
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<div class="flex">
|
||||
<!-- Logo -->
|
||||
<div class="shrink-0 flex items-center">
|
||||
<%= link_to "Aperonight", "/", class: "text-white text-xl font-bold" %>
|
||||
<%= link_to Rails.application.config.app_name, "/", class: "text-white text-xl font-bold" %>
|
||||
</div>
|
||||
|
||||
<!-- Navigation Links -->
|
||||
|
||||
@@ -238,7 +238,7 @@
|
||||
<section class="bg-gray-900 py-20">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div class="text-center mb-16">
|
||||
<h2 class="text-4xl font-bold text-white mb-4">Pourquoi choisir Aperonight ?</h2>
|
||||
<h2 class="text-4xl font-bold text-white mb-4">Pourquoi choisir <%= Rails.application.config.app_name %> ?</h2>
|
||||
<p class="text-xl text-gray-400 max-w-2xl mx-auto">La plateforme préférée des Parisiens pour sortir</p>
|
||||
</div>
|
||||
|
||||
|
||||
1
config/initializers/app_config.rb
Normal file
1
config/initializers/app_config.rb
Normal file
@@ -0,0 +1 @@
|
||||
Rails.application.config.app_name = ENV.fetch("APP_NAME", "Aperonight")
|
||||
@@ -2,6 +2,7 @@
|
||||
RAILS_ENV=production
|
||||
SECRET_KEY_BASE=a3f5c6e7b8d9e0f1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r9s0t1u2v3w4x5y6z7
|
||||
DEVISE_SECRET_KEY=your_devise_secret_key_here
|
||||
APP_NAME=Pafterwork
|
||||
|
||||
# Database Configuration for production and development
|
||||
DB_HOST=mariadb
|
||||
|
||||
Reference in New Issue
Block a user