add .env
This commit is contained in:
33
.env.example
Normal file
33
.env.example
Normal file
@@ -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
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -8,7 +8,7 @@
|
|||||||
/.bundle
|
/.bundle
|
||||||
|
|
||||||
# Ignore all environment files.
|
# Ignore all environment files.
|
||||||
/.env*
|
/.env
|
||||||
|
|
||||||
# Ignore all logfiles and tempfiles.
|
# Ignore all logfiles and tempfiles.
|
||||||
/log/*
|
/log/*
|
||||||
|
|||||||
@@ -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": "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: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"
|
"build:css": "postcss ./app/assets/stylesheets/application.postcss.css -o ./app/assets/builds/application.css"
|
||||||
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hotwired/stimulus": "^3.2.2",
|
"@hotwired/stimulus": "^3.2.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user