You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev-packages/e2e-tests/test-applications/firebase/README.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,6 @@ exit
33
33
9. Switch back to previous tab, stop the docker container (ctrl+c).
34
34
10. You should now be able to run the test, as you have correctly authenticated the firebase emulator
35
35
36
-
37
36
### Preparing data for CLI
38
37
39
38
1. Please authorize the docker first - see the previous section
@@ -45,15 +44,21 @@ npm run createEnvFromConfig
45
44
46
45
3. It will create a new file called ".env" inside folder "docker"
47
46
4. View the file. There will be 2 params CONFIG_FIREBASE_TOOLS and CONFIG_UPDATE_NOTIFIER_FIREBASE_TOOLS.
48
-
5. Now inside the CLI create a new variable under the name CONFIG_FIREBASE_TOOLS and CONFIG_UPDATE_NOTIFIER_FIREBASE_TOOLS - take values from mentioned .env file
49
-
6. File .env is ignored to avoid situation when developer after authorizing firebase with private account will accidently push the tokens to github.
50
-
7. But if we want the users to still have some default to be used for authorisation (on their local development) it will be enough to commit this file, we just have to authorize it with some "special" account.
47
+
5. Now inside the CLI create a new variable under the name CONFIG_FIREBASE_TOOLS and
48
+
CONFIG_UPDATE_NOTIFIER_FIREBASE_TOOLS - take values from mentioned .env file
49
+
6. File .env is ignored to avoid situation when developer after authorizing firebase with private account will
50
+
accidently push the tokens to github.
51
+
7. But if we want the users to still have some default to be used for authorisation (on their local development) it will
52
+
be enough to commit this file, we just have to authorize it with some "special" account.
51
53
52
-
**Some explanation towards environment settings, the environment variable defined directly in "environments" takes precedence over .env file, that means it will be safe to define it in CLI and still keeps the .env file.**
54
+
**Some explanation towards environment settings, the environment variable defined directly in "environments" takes
55
+
precedence over .env file, that means it will be safe to define it in CLI and still keeps the .env file.**
53
56
54
57
### Scripts - helpers
55
58
56
-
* createEnvFromConfig - it will use the firebase docker authentication and create .env file which will be used then by docker whenever you run emulator
57
-
* createConfigFromEnv - it will use '.env' file in docker folder to create .config for the firebase to be used to authenticate whenever you run docker, Docker by default loads .env file itself
59
+
- createEnvFromConfig - it will use the firebase docker authentication and create .env file which will be used then by
60
+
docker whenever you run emulator
61
+
- createConfigFromEnv - it will use '.env' file in docker folder to create .config for the firebase to be used to
62
+
authenticate whenever you run docker, Docker by default loads .env file itself
58
63
59
64
Use these scripts when testing and updating the environment settings on CLI
0 commit comments