ruby on rails 服务器命令 [英] ruby on rails server command

查看:41
本文介绍了ruby on rails 服务器命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始在 rails 上学习 ruby​​ ,我遇到了服务器问题,在教程中,当他们使用rails server"时,它会显示端口号和有关服务器的其他一些信息,但是当我使用rails server"时" 在 windows 中,它向我显示了 "rails" 命令的选项
知道问题出在哪里吗?
谢谢

I've started to learn ruby on rails , I've got a problem with server, in the tutorial when they use "rails server" it shows port number and some other information about server, but when I use "rails server" in windows , it shows me the options of "rails" command
have any ideas where's the problem?
thanks

推荐答案

在启动rails服务器之前,你必须创建你的项目

Before start the rails server, you have to create your project

rails new projectname

然后你必须去你的项目文件夹并尝试启动服务器

and then you have to go your project's folder and try to start server

cd projectname/

rails server

这篇关于ruby on rails 服务器命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆