Why 'rails server' is not working ?

58 views
Skip to first unread message

Juan José Santos

unread,
Jan 24, 2015, 7:07:30 AM1/24/15
to rubyonra...@googlegroups.com
Hi, I'm trying to make a 'HelloWorld App', but i'm stopped with this problem, after typed 'rails server' i get this message:

"$: ~/TRAINING/Ruby/hello/hello_app$ rails server
bin/rails:6: warning: already initialized constant APP_PATH
/home/juanjo/TRAINING/Ruby/hello/hello_app/bin/rails:6: warning: previous definition of APP_PATH was here
Usage: rails COMMAND [ARGS]

The most common rails commands are:
 generate    Generate new code (short-cut alias: "g")
 console     Start the Rails console (short-cut alias: "c")
 server      Start the Rails server (short-cut alias: "s")
 dbconsole   Start a console for the database specified in config/database.yml
             (short-cut alias: "db")
 new         Create a new Rails application. "rails new my_app" creates a
             new application called MyApp in "./my_app"

In addition to those, there are:
 destroy      Undo code generated with "generate" (short-cut alias: "d")
 plugin new   Generates skeleton for developing a Rails plugin
 runner       Run a piece of code in the application environment (short-cut alias: "r")

All commands can be run with -h (or --help) for more information. "

what is the problem ? why can't start rails server?
Thanks.

Hassan Schroeder

unread,
Jan 24, 2015, 11:27:57 AM1/24/15
to rubyonrails-talk
On Sat, Jan 24, 2015 at 4:07 AM, Juan José Santos <santo...@gmail.com> wrote:

> "$: ~/TRAINING/Ruby/hello/hello_app$ rails server
> bin/rails:6: warning: already initialized constant APP_PATH
> /home/juanjo/TRAINING/Ruby/hello/hello_app/bin/rails:6: warning: previous
> definition of APP_PATH was here

> what is the problem ? why can't start rails server?

OS? Ruby version? Rails version? How were they installed? What's
in your Gemfile?

What's the exact command you used to generate the rails app?

Do you see the same issue if you generate a new app?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

Sushruth Sivaramakrishnan

unread,
Jan 24, 2015, 12:20:04 PM1/24/15
to rubyonra...@googlegroups.com
Try running rake rails:update:bin


Regards,
Sushruth


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAfzyytQPQWMcGz7xmbDfYndLK2A-VrethZ7ji6D6JS3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages