TurnKey Linux Virtual Appliance Library

Ruby on Rails Sample program startup

don.kidder's picture

I am new to Turnkey, but found the installation very easy.

I am using a static IP and can get to the Webadmin screen via Https with no problems.

Should the sample Ruby on Rails app fire up automatically or am I missing a step?

The Passanger module is a new thing for me as well so perhaps I missed something there.

From the description it looks like Mongrel was dropped so the script/server command is not going to help.

Jeremy Davis's picture

Did you check the appliance page?

Glad to hear you've got your TKL server up and running no worries!

On the appliance page it says:

"Preconfigured example Rails application located at /var/www/railsapp"

I would assume that'd be equate to http://appliance-ip/railsapp/ Is that where you looked?

Mike Gillson's picture

How to access rails app

I do exactly this http://appliance-ip/railsapp/

on the appliance but I get "The page you were looking for doesn't exist"

I can see the folder /var/www/railsapp and I see the /etc/apache2/conf/railsapp.conf file.

How do I run the rails apps?

Mike Gillson's picture

Rails App is Working

http://appliance-ip/images/rails.png shows the ruby on rails icon

When I look at the /var/www/railsapp/views/cp/index.html.erb, I see that the whole web site is running through rails.

When I add my new rails sites, I will need to create named virtual directories to access the new rails sites.

I have learned alot from looking out how this appliance is configured with apache.

The appliances are well done.  I am learning alot about ubuntu from looking at all the great work you have done.

Guest's picture

I have a very similar issue. I cannot see the sample apps.

Were you able to fix this? If so how?

Guest's picture

I gave up

My limited experience with Ruby on Rails has sent me in a new direction.  If I want to deploy to Heroku or EngineYard, everything is very easy and tied in with GIT.

When I want to host my own Ruby on Rails Server at our company, deployment become unknown with documentation that was incomplete.

I gave up because I never figured out how to deploy.  Great Language, Ruby, but the Ruby and Rails arrogance of convention over configuration and only one way to do something, became to much work.

I am using PHP instead.

Guest's picture

Thanks for the reply

Thanks for the reply.

Guest's picture

passenger no go

I'm also stuck on this, I have been able to run webrick inside the app by updating rails and doing:

"rails s"

but still no go with the apache passenger module, tried running:

http://tk-rails-ip/ (takes me to webmin)

http://tk-rails-ip/railsapp/ (404)

http://tk-rails-ip/railsapp/public (404)

Guest's picture

passenger go!

Sorry!! I figured out now that in fact im seeing the default railsapp at http://tk-rails-ip/

the thing is that its not the default railsapp that I (and many of us) expected so we were all thinking it was not working!

So if you are seeing this:

You are now on the default railsapp

jruff's picture

Default Display Missing

The external image linked from the comment is no longer valid. What did it show?



Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)