LiveZilla Live Help
 


Go Back   Chime Host - Web Hosting Forum > Web Hosting Section > Knowledge Base > Tutorials
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Tutorials Contribute only full How-To\'s and Tutorials here. Submit Tutorials, Guides and Hints. ALL TUTORIALS ARE MODERATED AND YOUR TUTORIAL WILL *NOT* BE *VISIBLE* UNTIL IT IS ACCEPTED.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-19-2008, 03:22 PM
Senior Member
 
Join Date: Dec 2007
Location: Germany (in a small town)
snoop1990 is on a distinguished road
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.

Quote:
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-17-2008, 05:32 PM
Senior Member
 
Join Date: Dec 2007
Location: Germany (in a small town)
snoop1990 is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is a good name for a company that makes thermoses? Chris Business and Finance Forum 0 02-09-2010 02:39 AM
Having problems with HTML tables? ieric23 HTML/CSS/DHTML 1 01-24-2010 04:38 AM
What is the geometry postulate that goes with this pic? uhyeah321 PHP 1 01-21-2010 10:39 PM
How do I go about finding a marketing firm for my online business? fernandez8607 Business and Finance Forum 2 01-06-2010 08:03 PM


All times are GMT +1. The time now is 11:56 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ChimeHost, a Profuse Solutions LLC company