Results 1 to 16 of 16
  1. #1
    Join Date
    Sep 2005
    Posts
    6,043

    Default Ruby on Rails forum

    Its time for everyone to look at Ruby on Rails now. We can no longer stay untouched by this wave created by RoR. cPanel has included everything that one needs to deploy Ruby on Rails applications and you get more than 2000 Gems to install from cPanel.

    Now you can install Gems from control panel like perl and php pear modules. I hope this section of our forum helps webmasters to gain expertise in Ruby on Rails Development.
    UK Web Hosting || Business Hosting || eUKhost Knowledgebase
    Toll Free : 0808 262 0255 || Skype : mark_ducadi
    A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
    __________________________________________________

    Please email cmo[at]eukhost.com if you have any questions or need my assistance

  2. #2
    Join Date
    Apr 2007
    Location
    Manchester, United Kingdom
    Posts
    8,440

    Default

    Cool. I think it is a great idea to dedicate a part of the forum to this.

    I have seen it in control panel but have never been quite sure how to do things / what to use it for.

    I'm glad there is this part of the forum now so I can ask specific questions about it and get help on it .
    David Smith
    DPS Computing
    http://www.dpscomputing.com (Computing, Reviews, News) - We're still plodding on adding new content and features (August 2011)
    http://www.djdavid.co.uk - Massive update! (September 2011) - It's now not neglected!!
    http://davidsmith.dpscomputing.com (My Personal Website) - New Site (10/2009)

  3. #3
    Join Date
    May 2006
    Location
    Cambridgeshire
    Posts
    484

    Default

    Stupid question, but can someone summaries what Ruby on Rails is? I keep thinking of trains and mining when I hear of it, though I gather it's some type of coding language. Can anyone recommend some website hostings for examples of it's useage and further reading?
    To err is human, but to really screw up you need a computer.

  4. #4

    Default

    Quote Originally Posted by Eidolon View Post
    Stupid question, but can someone summaries what Ruby on Rails is? I keep thinking of trains and mining when I hear of it, though I gather it's some type of coding language. Can anyone recommend some website hostings for examples of it's useage and further reading?
    Have a look on this;

    http://blog.eukhost.com/2006/09/30/ruby-on-rails/
    You can find there few link as well through comments which might be useful for further reading.

  5. #5
    Join Date
    Sep 2005
    Posts
    6,043

    Default

    I would suggest you to look at www.rubyonrails.org

    They have managed to establish very well in last couple of months. Ruby on Rails is much more flexible than php and I am not afraid to compare it with Perl.
    UK Web Hosting || Business Hosting || eUKhost Knowledgebase
    Toll Free : 0808 262 0255 || Skype : mark_ducadi
    A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
    __________________________________________________

    Please email cmo[at]eukhost.com if you have any questions or need my assistance

  6. #6
    Join Date
    Apr 2007
    Location
    Manchester, United Kingdom
    Posts
    8,440

    Default

    Are there plans to have RoR available on all shared servers? - It's just I am informed that I would have to change server to have access to it! (Which support said wouldn't be a problem ). However if its due to be installed on all shared servers it would be pointless making more work for support and getting it transferred.

    Thank you in advance!
    David Smith
    DPS Computing
    http://www.dpscomputing.com (Computing, Reviews, News) - We're still plodding on adding new content and features (August 2011)
    http://www.djdavid.co.uk - Massive update! (September 2011) - It's now not neglected!!
    http://davidsmith.dpscomputing.com (My Personal Website) - New Site (10/2009)

  7. #7
    Join Date
    Sep 2005
    Posts
    6,043

    Default

    as per my knowledge we have enabled RoR on most of the shared servers. If its not there on some of the servers then you can have our support team to install it as it is officially included by cPanel now like perl scripts and php modules.
    UK Web Hosting || Business Hosting || eUKhost Knowledgebase
    Toll Free : 0808 262 0255 || Skype : mark_ducadi
    A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
    __________________________________________________

    Please email cmo[at]eukhost.com if you have any questions or need my assistance

  8. #8
    Join Date
    Apr 2007
    Location
    Manchester, United Kingdom
    Posts
    8,440

    Default

    Apparently not available on a few of them but quite a few servers have it installed .
    David Smith
    DPS Computing
    http://www.dpscomputing.com (Computing, Reviews, News) - We're still plodding on adding new content and features (August 2011)
    http://www.djdavid.co.uk - Massive update! (September 2011) - It's now not neglected!!
    http://davidsmith.dpscomputing.com (My Personal Website) - New Site (10/2009)

  9. #9
    Join Date
    Sep 2005
    Posts
    6,043

    Default

    Quote Originally Posted by DPS Computing View Post
    Apparently not available on a few of them but quite a few servers have it installed .
    I'll have someone to go through all servers and install RoR on those which are missing it.
    UK Web Hosting || Business Hosting || eUKhost Knowledgebase
    Toll Free : 0808 262 0255 || Skype : mark_ducadi
    A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
    __________________________________________________

    Please email cmo[at]eukhost.com if you have any questions or need my assistance

  10. #10
    Join Date
    Apr 2007
    Location
    Manchester, United Kingdom
    Posts
    8,440

    Default

    Quote Originally Posted by eukhost.com View Post
    I'll have someone to go through all servers and install RoR on those which are missing it.
    Cool, seems like a good idea - RoR seems to have a lot of potential!
    David Smith
    DPS Computing
    http://www.dpscomputing.com (Computing, Reviews, News) - We're still plodding on adding new content and features (August 2011)
    http://www.djdavid.co.uk - Massive update! (September 2011) - It's now not neglected!!
    http://davidsmith.dpscomputing.com (My Personal Website) - New Site (10/2009)

  11. #11

    Default Shebang

    Can anyone tell me what the Shebang is for EUKhost?

    I've tried

    #!/usr/bin/env ruby

    And can anyone help me with a very simple program to make sure I understand how the system works.

    I just want ot print out 'hello'

    So that should be?

    puts 'hello'

    Yes?

    So I create a ruby program

    #!/usr/bin/env ruby
    puts 'hello'

    call it hellothere.rb

    upload it

    Should it work like that?

    Do I need to encapsulate it within an html file

    I also tried

    #!/usr/bin/env ruby
    <%= puts 'hello'%>

    Also does not work - Server error 500
    And Error 400 - file not found.

    Can anyone help?

    Please??

  12. Default

    This is fantastic.

    I had been keen to get some ruby on rails stuff going on my shared server but it wasn't available when I signed up. Great job on setting it up Eukhost, I'll have a play with it later when I get a chance.

    To the what is RoR questions:

    Ruby is an object oriented programming language developed in Japan in the 1990's.
    Rails is a dynamic web website hosting development framework built in Ruby, supporting things like javascript and a nice object reference model.

    Ruby on Rails is the combination of the two, which allows you to develop nice database driven dynamic web sites/applications, starting with solid framework. It's akin to building a php application with a whole load of standardised third party modules that handle all the underlying stuff (like connections to a database) for you, as well as many more things. Only Ruby is a nicer language (IMHO) than php.

    As people have said look at the official website hosting for more info, but hopefully this gives you a quick overview. I'm not a very experienced web developer though, so consider that when you read what I have written.

  13. #13
    Join Date
    Apr 2007
    Location
    Manchester, United Kingdom
    Posts
    8,440

    Default

    Thanks for that nice little intro Andrew - it saves searching the official website hosting for it .
    David Smith
    DPS Computing
    http://www.dpscomputing.com (Computing, Reviews, News) - We're still plodding on adding new content and features (August 2011)
    http://www.djdavid.co.uk - Massive update! (September 2011) - It's now not neglected!!
    http://davidsmith.dpscomputing.com (My Personal Website) - New Site (10/2009)

  14. #14

    Default Deploying Rails on Eukhost

    It's been some time since anyone posted to this forum, so I wondered if there was anyone trying to do what I'm trying to do.

    I've been playing around with Ruby on Rails for a while now and would like to see if there are really any valid uses for it. After all the promises are great, that it will be agile and it appears that it would enable someone to produce a basic website hosting application very quickly.

    However, I have yet to see one. And yet to figure out how to do it. People tell me their web site hosting is running on Ruby, but when you check it out, ou see little .php or .asp signs that it is not.

    So what I wondered is whether anyone using Eukhost servers is running a production version of their website hosting day to day and if they can give me any pointers as to how to get into the production mode.

    I know about making sure 'production' database is set up correctly in 'database.yml'
    I know about running ruby script/server -e production

    I even know about uncommenting the variable in Environment.rb to
    ENV['RAILS_ENV'] ||= 'production'

    I have heard mutterings about running the rails app within 'public_html' folder and have tried that too.

    But none of my migrations have affected the 'production' database - so I assume I'm not running in 'production'.

    Is there anyone who can give me some simple pointers.

    Too much of the documentation deals with 'installation', 'gems'(what are they?) and various other elements involved in setting rails up. I assume I don't need to do any of that, as Eukhost have already done it.

    But how do I make the best use of what appears a very promising framework?

    Help!!

    Brian

  15. Default

    Hi Brian,

    Deploying RoR applications is still a tricky thing to do, I'm not sure how you would do it on Eukhost shared hosting.

    Sounds like you're doing everything right except the actual migration command.
    The line in environment.rb is only telling the server which environment to run in. This then looks up your /config/environments/production.rb file, which tells it things such as whether or not to use caching.

    When you run the migrations are you running it from ssh?

    If so you need to specify the environment just before you run the migration, e.g.:
    (within the applications root directory - not the /app folder, one higher than that)
    rake environment RAILS_ENV=production db:migrate

    Lots of information on migrations here:
    UsingMigrations in Ruby on Rails

    I did have an app working on Eukhost shared hosting, but I no longer have an account here. Hopefully I will again soon as it looks like I may have some new web development work coming in soon. (Outside of my full time job)

    I seem to remember there being some useful stuff in Cpanel to control rails apps though, so you may not need to do things in the command line.

    For reference I currently have one commercial application in development with work, it's nearly ready to go, but I am only responsible for the programming, someone else organised the host and set up the deployment etc. We're using a VPS Hosting and deploying via capistrano - which is very useful in that situation.

    Good luck with your rails apps.

  16. #16
    Join Date
    Sep 2008
    Posts
    101

    Default

    Hello,

    I would suggest you refer following thread
    Ruby on Rails Tutorials

    If you want to deploy your applications then you can do it from cPanel >> Ruby and Rails in Production or Development mode.

    Regards,
    Eric
    Support Team.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •