我使用 CodeStar 创建了我的第一个环境,并选择了 Ruby on Rails w/ Elastic Beanstalk 选项。我将 AWS Cloud9 用于 IDE。我想在提交之前使用预览选项查看代码更改的影响,并查看了http://docs.aws.amazon.com/cloud9/latest/user-guide/app-preview上的文档.html,但是我似乎无法在开发环境中运行服务器。
从 Cloud9 终端的环境目录中(路径:/home/ec2-user/environment/ env_name),我尝试rails s -b $IP -p $PORT
按照以前的非 AWS Cloud9 的记录,rails server
甚至rails console
只是为了检查。在每种情况下,我都会获得以下帮助详细信息rails new
:
$ rails s
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
...etc...
我错过了什么?