Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code sample do not work in windows #58

Open
you-zhou opened this issue May 24, 2017 · 0 comments
Open

code sample do not work in windows #58

you-zhou opened this issue May 24, 2017 · 0 comments

Comments

@you-zhou
Copy link

Location within the Book

  • Chapter or Appendix: 5 Settings and Requirements Files
  • Section: 5.3 Separate Configuration From Code
  • Subsection:
    5.3.2 How to Set Environment Variables Locally (Page 50)
    5.3.3 How to Unset Environment Variables Locally (Page 51)

Description

I have encountered some issues following the sample snippets to set/unset the environment variables in Windows 7 & 10.
After some research, this is what I found:

# Page 50
# Windows 7 & 10 do not have this setx command.
# change setx to set seems to be working though.
setx SOME_SECRET_KEY 1c3-cr3am-15-yummy

# Page 51
# Windows 7 & 10 do not have this unset command.
# Set a variable to empty would take it out of the environment variable list.
# set "SOME_SECRET_KEY=" would unset the environment variable.
unset SOME_SECRET_KEY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants