On Sep 12, 2014, at 2:45 PM, Michael Andrews wrote: > So I'm trying to install openbadges following this tutorial, this part > specifically > https://github.com/mozilla/openbadges-badgekit/wiki/BadgeKit-Self-Hosting-Guide#badgekit-api-database > > The problem I have is it tells me I need to set the source, but I don't know > how to do that on a windows machine. I've tried > > Node > source env_local > > but it just gives me this > http://i.imgur.com/sR6QHkl.png > > I'm new to node so sorry if it's a dumb question. But how do I set the > source, so I can run that db migrate command?
"source" is a command of the Bash shell, and other shells you find on Unix operating systems, which runs the specified shell script in the same environment as the current shell. If you have a script file named "env_local", running it with "bash env_local" or "./env_local" would cause it to run in a *new* shell, in a *new* environment, which would go away as soon as the script exited. This is great for standalone programs because it means the script cannot pollute your environment, however sometimes you *want* the script to modify your environment; sometimes the script's entire purpose is to modify your environment, as is the case with the "env_local" script the above wiki page is helping you create; that's where use use "source"; e.g. "source env_local". BTW, the command "." is an alias for the command "source" so you can accomplish the same thing by running ". env_local". I don't know if there is a Windows equivalent of the "source" command, but even if there is, it's unlikely that a script that's compatible with Bash would also be compatible with the Windows shell. You may need to ask the developers of this project whether it can be used on Windows, and if so, how. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/658E6766-D679-4C0E-A845-E5FC31908979%40ryandesign.com. For more options, visit https://groups.google.com/d/optout.
