Skip to content

Commit

Permalink
Switch to new config style
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Aug 6, 2024
1 parent 3c33d05 commit 386926b
Show file tree
Hide file tree
Showing 9 changed files with 668 additions and 46 deletions.
29 changes: 29 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# vim: et:ts=2:sw=2:tw=0:wm=0:fdm=marker:ft=bash

strict_env

PATH_add "./bin"
PATH_add "./scripts"

[[ ! -f .dev.env ]] && echo -e "\nIt seems you don't have a dev.env file locally. We need this to run.\n"

case "${STZH_ENV:-dev}" in
dev*)
echo "Loading .dev.env"
dotenv_if_exists "./.dev.env"
;;
int*)
echo "Loading .int.env"
dotenv_if_exists "./.int.env"
;;
prod*)
echo "Loading .prod.env"
dotenv_if_exists "./.prod.env"
;;
esac

# Add your local changes into the .envrc.local, which is a full blown .envrc file
# You can find the available commands here: https://direnv.net/man/direnv-stdlib.1.html
echo "Loading .envrc.local"
dotenv_if_exists "./.envrc.local"

5 changes: 5 additions & 0 deletions .envrc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim: et:ts=2:sw=2:tw=0:wm=0:fdm=marker:ft=bash

export RAILS_ALLOWED_HOSTS="test.dialogluzern.local,dialogluzern.local,test.deinklima.local,deinklima.local,test.impulskoeniz.local,impulskoeniz.local"
export CUSTOMIZATION_OUTPUT=false
export RAILS_ENV=development
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ public/uploads
# Ignore local gems
/vendor/bundle/

# Ignore .envrc
.envrc
# Ignore .envrc.local
.envrc.local

# Ignore local environment variables file
/.env.local
/*.env
!/dev.env

# Ignore editor specific files
*.code-workspace
Expand All @@ -67,4 +69,4 @@ yarn-debug.log*
.bash_history
.viminfo
.local
.npm
.npm
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ DEPENDENCIES
web-console

RUBY VERSION
ruby 3.0.7p220
ruby 3.0.6p216

BUNDLED WITH
2.3.20
2.5.6
Loading

0 comments on commit 386926b

Please sign in to comment.