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

Recognizing Command #617

Open
marielouis46 opened this issue Jul 26, 2013 · 4 comments
Open

Recognizing Command #617

marielouis46 opened this issue Jul 26, 2013 · 4 comments

Comments

@marielouis46
Copy link

Command prompt with Ruby and Rails do not recognize "bin" as a command. A way to remedy that is to put "ruby" and then the rest of the command.

@steveklabnik
Copy link
Contributor

Yes, thanks! It's a windows specific thing, our tutorials are written from a Mac/Linux perspective.

I'm going to leave this open as a reminder to create a "Changes on windows" page.

@kytrinyx
Copy link
Contributor

@steveklabnik I'm working on the blogger tutorial now. From the above I'm assuming that the command to kick this off on Windows is:

ruby bin/rails server

Is that correct?

What is the preferred format on Mac/Linux?

$ bin/rails server # does everyone get bin on their path?
$ ./bin/rails server
$ bundle exec rails server # old-school?

@steveklabnik
Copy link
Contributor

The preferred incantation is bin/rails server. That's what all of the docs say to do now.

On Windows, you must ruby bin/rails server because it doesn't support #!.

You don't need anything special on your path to bin/rails server, it just works. ./bin/rails server is a bit more explicit; if bin is in your $PATH then you'd just rails.

@kytrinyx
Copy link
Contributor

Great, thanks.

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

3 participants