-
Notifications
You must be signed in to change notification settings - Fork 0
GoodKey configuring server environment
By default, the GoodKey application operates with the production server. To use the canary server, you need to set a global environment variable GOODKEY_ENV
with the value canary
.
-
Open Terminal:
Launch the Terminal application from the Applications folder or by searching for it in Spotlight. -
Edit the Shell Profile:
Depending on your shell, you need to edit the appropriate profile file. Use a text editor to open the file. For example, to edit withnano
:- For bash: Edit
~/.bash_profile
nano ~/.bash_profile
- For zsh: Edit
~/.zshrc
nano ~/.zshrc
- For bash: Edit
-
Add the Environment Variable:
Add the following line to the file:export GOODKEY_ENV=canary
Save the file and exit the editor.
-
Apply the Changes:
Run the following command in the terminal:source ~/.zshrc
-
Open System Properties:
PressWin + Pause/Break
to open System Properties, or right-click onThis PC
and selectProperties
. -
Advanced System Settings:
Click onAdvanced system settings
on the left sidebar. -
Environment Variables:
In the System Properties window, click on theEnvironment Variables
button. -
Add New Variable:
In the Environment Variables window, click onNew
under theSystem variables
section. Enter the following details:-
Variable name:
GOODKEY_ENV
-
Variable value:
canary
-
Variable name:
-
Save and Apply:
ClickOK
to save the new variable. Close all remaining windows by clickingOK
.
After setting the environment variable, it is important to restart your computer for the changes to take effect.