From 1324463c2f860477921aa1eb939cd5e2e1dba157 Mon Sep 17 00:00:00 2001 From: kbe Date: Thu, 21 Aug 2025 16:09:10 +0200 Subject: [PATCH] add .env --- .env.example | 33 +++++++++++++++++++++++++++++++++ .gitignore | 2 +- package.json | 1 + 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..c3fec3d --- /dev/null +++ b/.env.example @@ -0,0 +1,33 @@ +# Application data +RAILS_ENV=development +SECRET_KEY_BASE=a3f5c6e7b8d9e0f1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r9s0t1u2v3w4x5y6z7 +DEVISE_SECRET_KEY=your_devise_secret_key_here +APP_NAME=Pafterwork + +# Database Configuration for production and development +DB_HOST=localhost +DB_ROOT_PASSWORD=root +DB_DATABASE=aperonight +DB_USERNAME=root +DB_PASSWORD=root + +# Test database +DB_TEST_ADAPTER=sqlite3 +DB_TEST_DATABASE=aperonight_test +DB_TEST_USERNAME=root +DB_TEST_USERNAME=root + +# Mailer Configuration (for Devise and tests) +MAILER_DEFAULT_URL_OPTIONS=http://localhost:3000 +# Test environment will use MailHog by default on 127.0.0.1:1025 +SMTP_ADDRESS=127.0.0.1 +SMTP_PORT=1025 +# Optional auth (usually not required for MailHog) +# SMTP_USER_NAME= +# SMTP_PASSWORD= +# SMTP_DOMAIN=localhost +SMTP_AUTHENTICATION=plain +SMTP_ENABLE_STARTTLS=false + +# Application variables +STRIPE_API_KEY=1337 diff --git a/.gitignore b/.gitignore index afd85fd..38284b6 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ /.bundle # Ignore all environment files. -/.env* +/.env # Ignore all logfiles and tempfiles. /log/* diff --git a/package.json b/package.json index 7c41470..41cf769 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "build": "esbuild app/javascript/*.* --bundle --minify --sourcemap=external --format=esm --outdir=app/assets/builds --public-path=/assets --loader:.js=jsx", "build:dev": "esbuild app/javascript/*.* --bundle --sourcemap --format=esm --outdir=app/assets/builds --public-path=/assets --loader:.js=jsx", "build:css": "postcss ./app/assets/stylesheets/application.postcss.css -o ./app/assets/builds/application.css" + }, "dependencies": { "@hotwired/stimulus": "^3.2.2",