I have created a new rails project with the command:
rails project_name
but now in that project if I run:
rails server
I just creates a new project call server, it doesn't start webrick.
How do I start the server and get rails running?
I have created a new rails project with the command:
rails project_name
but now in that project if I run:
rails server
I just creates a new project call server, it doesn't start webrick.
How do I start the server and get rails running?
You're mixing Rails 2 and Rails 3 commands. By the looks of it, you're using Rails 2, which means starting the server would be script/server
, not rails server
rails new new_project
to create the project. The rails new_project
syntax has been removed since all the old script/* commands have been moved into the rails command. Double-check with rails -v
–
Anorexia rails server
nor rails script/server
start webrick. rails -v
outputs Rails 2.3.14
, how can I start webrick? –
Platino script/server
, not rails script/server
–
Anorexia script/server
outputs -bash: script/server: No such file or directory
–
Platino Old versions or rails are bugging you. Deinstall them using gem uninstall rails
. I recommend using RVM with gemsets to create separate environments for each project.
You're mixing Rails 2 and Rails 3 commands. By the looks of it, you're using Rails 2, which means starting the server would be script/server
, not rails server
rails new new_project
to create the project. The rails new_project
syntax has been removed since all the old script/* commands have been moved into the rails command. Double-check with rails -v
–
Anorexia rails server
nor rails script/server
start webrick. rails -v
outputs Rails 2.3.14
, how can I start webrick? –
Platino script/server
, not rails script/server
–
Anorexia script/server
outputs -bash: script/server: No such file or directory
–
Platino Step by Step rails server Installation :
yeah, nothing to do more... :)
© 2022 - 2024 — McMap. All rights reserved.