Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Aug 5, 2024
1 parent 3c33d05 commit bf50c3f
Show file tree
Hide file tree
Showing 7 changed files with 659 additions and 47 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 "${STLU_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
Loading

0 comments on commit bf50c3f

Please sign in to comment.