Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
Further cleanup to .env files & fix netlify (wbstack#71)
Browse files Browse the repository at this point in the history
* Further cleanup to .env files & fix netlify

netlify was still referring to old names
now .gitignore the base .env file..
make the actual .production one have the right NODE_ENV
make another one for a develop prod version

* Update .env.production
  • Loading branch information
addshore authored Mar 25, 2021
1 parent a5245d2 commit 2e9900a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .env

This file was deleted.

4 changes: 4 additions & 0 deletions .env.development.prod
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NODE_ENV=development
VUE_APP_API_URL="https://www.wbstack.com/api"
VUE_APP_API_MOCK=0
VUE_APP_RECAPTCHA_SITE_KEY="6LeHzbMUAAAAABjNp0vILaWr5ZeYHmteF7rGuZNV"
3 changes: 2 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NODE_ENV=development
# This file is used when building the docker image
NODE_ENV=production
VUE_APP_API_URL="https://www.wbstack.com/api"
VUE_APP_API_MOCK=0
VUE_APP_RECAPTCHA_SITE_KEY="6LeHzbMUAAAAABjNp0vILaWr5ZeYHmteF7rGuZNV"
4 changes: 2 additions & 2 deletions .github/workflows/netlify-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

- uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .env.dev.mock
env-file: .env.development.mock

- name: Use Node.js 14.x
uses: actions/setup-node@v1
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:

- uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .env.dev.prod
env-file: .env.development.prod

- name: Use Node.js 14.x
uses: actions/setup-node@v1
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DS_Store
node_modules
/dist

.env

/tests/e2e/logs/

Expand Down

0 comments on commit 2e9900a

Please sign in to comment.