+ Reply to Thread
Results 1 to 2 of 2

Thread: My very own guide to ruby on rail (on profusehost)

  1. #1
    snoop1990 is offline Senior Member snoop1990 is on a distinguished road
    Join Date
    Dec 2007
    Location
    Germany (in a small town)
    Posts
    357

    Default My very own guide to ruby on rail (on profusehost)

    After a long discussion with John here (this is a link) I finally was able to get ruby on rails working, so here is my very own guide to ruby on rails.

    My very own guide to ruby on rails

    Sign up at Free Web Hosting, Free Domain Hosting, Free Web Hosting with No Ads, Post For Host - Home for a hosting package (they offer free hosting without ads, hosting with forced ads, paid hosting and post 2 host, so there is a solution for everyone).

    Then sign up to their support and request ssh access, this can be done here:
    Psychz Networks - Powered By Kayako eSupport

    Your request should look like this:
    Domain - ******.profusehost.net
    Username - ******
    Server - Profuse Host
    Issue - I want to request ssh access for my account to start ruby on rails development. Regards *******



    After you are given access, please follow the steps below.

    =============================================

    Connect to the server via ssh (psychz helpdesk provide all information required).

    Connected successful, then type “cd public_html” press enter, to open the folder public_html. Inside the Folder type “rails -d mysql myProject” (for myProject choose your project name) to create a new project.

    Next step set up a database
    - open cpanel mysql database at http://*****.profusehost.net:2082/fr...sql/index.html
    - create a database named db (the database is going to be ******_db because profusehost forces you to use your username at the beginning). Then create a mysql user named db and flush all privileges to this user.
    - Now after the database is created connect your ruby on rails application with the database, by editing config/database.yml. Delete all content inside and type:

    development:
    adapter: mysql
    encoding: utf8
    database: *****_db
    username: *****_db
    password: *********
    socket: /tmp/mysql.sock

    test:
    development

    production:
    development

    Now we want to create the hello world engine, type “./script/generate controller hello index” in your myProject directory. Then open the file /app/controllers/hello_controller.rb delete everything inside and type:

    class HelloController < ApplicationController

    def index
    render :text => "Hello World!"
    end
    end

    After the code is on the server, we have to change some factors to run it properly.

    Open /config/enviroment.rb and change “# ENV['RAILS_ENV'] ||= 'production'” to “ENV['RAILS_ENV'] ||= 'production'” and open /public/.htaccess and change “RewriteRule ^(.*)$ dispatch.cgi [QSA,L]” to “RewriteRule ^(.*)$ dispatch.fcgi?$ [QSA,L]”

    That is all you do not have to touch any further files.

    Now run http://*****.profusehost.net/myProjekt/public/hello/

    And you should get “Hello World!” otherwise contact me for support.
    ***** stands for your username

    Hope I did not miss anything ! This guide worked wonderful for me with Rails 2.0.2 running on the profusehost servers.

    Regrades Snoop1990

  2. #2
    snoop1990 is offline Senior Member snoop1990 is on a distinguished road
    Join Date
    Dec 2007
    Location
    Germany (in a small town)
    Posts
    357

    Default

    I am sad to announce but this feature is no longer available on profusehost.net ! There is no SSH and therefore no ruby on rails anymore. But you can use this tutorial on other servers.

+ Reply to Thread

Similar Threads

  1. Windows to Linux (Ubuntu) Transition - Best Guide?
    By Nate in forum Linux, BSD, other *nixes & Open Source Software
    Replies: 0
    Last Post: 01-07-2010, 08:07 PM
  2. CSS guide
    By saynews in forum HTML/CSS/DHTML
    Replies: 0
    Last Post: 08-31-2008, 04:07 PM
  3. Rail Simulator
    By heritagerail in forum General Discussions
    Replies: 0
    Last Post: 04-14-2008, 11:44 AM
  4. HTML Guide - Designing Navigation Buttons
    By Archican in forum HTML/CSS/DHTML
    Replies: 0
    Last Post: 01-23-2008, 02:28 AM
  5. Guide - DVD9 to DVD5 using DvdShrink
    By BOoBOo in forum Windows Operating System and Software
    Replies: 0
    Last Post: 11-13-2006, 08:27 AM

Posting Permissions

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