1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

I have created a Ruby on Rails app, but how do I move it to the web?

Discussion in 'Ruby' started by RHIMLER14, Aug 6, 2009.

  1. #1
    I have created a Ruby on Rails app, but how do I move it to the web?

    Been testing it in localhost and everything is ready to go, but how do I publish it to the web? Change the database.yml file to my MySQL settings but then what do I do??


    PLEASE HELP
     
    RHIMLER14, Aug 6, 2009 IP
  2. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There are some methods to do here: rubyonrails.org/deploy

    Just do a google search on deploy ruby on rails and you'll find some tutorials.
     
    premiumscripts, Aug 6, 2009 IP
  3. nomzz

    nomzz Well-Known Member

    Messages:
    475
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    110
    #3
    If your using some hosting let them know to point you root app to public folder .... but which method they are using to run your application thats the first question you should ask... like apache passenger or mongrel clusters ?
     
    nomzz, Aug 9, 2009 IP
  4. bpokosh

    bpokosh Active Member

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #4
    If you are running apache, look at passenger, also known as mod_rails.
     
    bpokosh, Sep 4, 2009 IP
  5. nutcash

    nutcash Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    try out ec2onrails if you want to deploy to Amazon's EC2 service. Great tools for clustering and backups and more. This is what we used for eroslife.com.
     
    nutcash, Sep 6, 2009 IP
  6. tonyaugustinea99

    tonyaugustinea99 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i just created an application to list the primary details of userbut it is showing an error lik this
    "uninitialized constant UsersController::User"
    this is my controlller

    class UsersController < ApplicationController
    puts"hiiiiiiiii"
    def index
    puts"hiiiiiiiii"
    @users = User.find:)all)
    puts @users
    respond_to do |format|
    format.html # index.html.erb
    format.xml { render :xml => @users }
    end

    end
    end

    this is my view file

    <h1>Users List</h1>


    <table>
    <tr>
    <th>Name</th>
    <th>Age</th>
    <th>Designation</th>
    <th>Hobby</th>
    </tr>

    <% @user.each do |user| %>
    <tr>
    <td><%=h user.name %></td>
    <td><%=h user.age %></td>
    <td><%=h user.designation %></td>
    <td><%=h user.hobby %></td>
    <!--<td><%= link_to 'Show', job %></td>
    <td><%= link_to 'Edit', edit_job_path(job) %></td>
    <td><%= link_to 'Destroy', job, :confirm => 'Are you sure?', :method => :delete %></td>-->
    </tr>
    <% end %>
    </table>

    and my model is this

    class User < ActiveRecord::Base
    end
    can anyone tell how to solve this
     
    tonyaugustinea99, Feb 24, 2010 IP