Skip to content

Commit

Permalink
chore: add .envrc and .env.example
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Dec 2, 2023
1 parent 422649f commit 99033d7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TOKEN="AAAAA"
GUILD_ID="AAAAA"
ERROR_LOGS_CHANNEL="AAAAA"
PAGESPEED_API_KEY="AAAAA"
REDIS_URL="redis://127.0.0.1/"
HOST="0.0.0.0"
PORT="8080"
11 changes: 11 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# only use flake when `nix` is present
if command -v nix &> /dev/null; then
if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
fi

watch_file ./nix/dev.nix
use flake
fi

dotenv_if_exists

0 comments on commit 99033d7

Please sign in to comment.