To run a rails application:
Welcome to Cloud9 IDE casiano@demo_app:~/514754 $ gem install rails Fetching: i18n-0.6.1.gem (100%) Fetching: multi_json-1.7.4.gem (100%) Fetching: activesupport-3.2.13.gem (100%) ...Despues de la instalación tenemos:
casiano@demo_app:~/514754 $ rails --version Rails 3.2.13
rails new
.
casiano@demo_app:~/514754 $ rails new demo_app create create README.rdoc create Rakefile ... run bundle install ...
rails s -b $IP -p $PORT
:
john@demo_app:~/514754 $ cd demo_app/ john@demo_app:~/514754/demo_app $ echo $IP 127.6.67.1 john@demo_app:~/514754/demo_app $ echo $PORT 8080 john@demo_app:~/514754/demo_app $ rails s -b $IP -p $PORT => Booting WEBrick => Rails 3.2.13 application starting in development on http://127.6.67.1:8080 => Call with -d to detach => Ctrl-C to shutdown server [2013-05-31 12:48:13] INFO WEBrick 1.3.1 [2013-05-31 12:48:13] INFO ruby 1.9.3 (2012-11-10) [x86_64-linux] [2013-05-31 12:48:13] INFO WEBrick::HTTPServer#start: pid=6788 port=8080 Cloud9 Your application is running at http://demo_app.john.c9.io
Casiano Rodriguez León 2015-01-07