Browse Source

:memo: Explain local env variables

DO NOT VERSION SENSITIVE DATA!
DricomDragon 1 year ago
parent
commit
a152ad8c96
3 changed files with 17 additions and 0 deletions
  1. 3 0
      .gitignore
  2. 7 0
      README.md
  3. 7 0
      example.env.local

+ 3 - 0
.gitignore

@@ -2,5 +2,8 @@
 *.gen.html
 *.gen.yml
 
+# sensitive files
+.env.local
+
 # distributable folder
 dist/

+ 7 - 0
README.md

@@ -24,6 +24,13 @@ DIST_DIR=/var/www/html make -e dist
 
 Check your work [on local apache server](http://localhost).
 
+You can set your custom env vars in a `.env.local` file and injecting them with the `source` command. See [example.env.local](example.env.local) to see the useful vars to implement.
+
+```sh
+source .env.local
+make -e dist
+```
+
 ## Deploy to prod
 
 ### Branching

+ 7 - 0
example.env.local

@@ -0,0 +1,7 @@
+#!/bin/usr/fish
+set --export --global DIST_DIR /var/www/html
+
+set --export --global FTP_HOST 'localhost'
+set --export --global FTP_USER 'anonymous'
+set --export --global FTP_PORT '21'
+set --export --global FTP_DEST 'www'