No application running on cloud9s host, hello_world rails-tutorial app

rails

#1

Hello everyone!

Pleasure to be here.

I started the rails-tutorial, hello_world app, which is just setting up the gem file and running the server.
I cannot get anything rendered on the page that cloud9 defaults to. Gems are per the tutorials request, exact gems, no >= conditions. I am new to cloud IDE’s. I have done bundle update, rechecked the gems, done bundle install. Made sure the naming is correct, so cloud9 knows what to render. To no avail.
Any ideas?


#2

Please share your Gemfile code as well as the command you are using to run the server.


#3
source 'https://rubygems.org'

gem 'rails',        '5.0.1'
gem 'puma',         '3.4.0'
gem 'sass-rails',   '5.0.6'
gem 'uglifier',     '3.0.0'
gem 'coffee-rails', '4.2.1'
gem 'jquery-rails', '4.1.1'
gem 'turbolinks',   '5.0.1'
gem 'jbuilder',     '2.4.1'

group :development, :test do
  gem 'sqlite3', '1.3.12'
  gem 'byebug',  '9.0.0', platform: :mri
end

group :development do
  gem 'web-console',           '3.1.1'
  gem 'listen',                '3.0.8'
  gem 'spring',                '1.7.2'
  gem 'spring-watcher-listen', '2.0.0'
end

group :production do
  gem 'pg', '0.18.4'
end

This is the gemfile. Command used to run server is ‘rails server’ Anything looking suspicious?


#4

You should always run your Rails server with specific C9 port and binding:

rails server -p $PORT -b $IP


#5

Yup I had missed that, I am used to running rails server locally, missed the port and ip command. Thanks a lot.