Crucial Paradigm

Call us now 1300 884 839

Manage Account
Australia USA

Location: Australia

Crucial Feature 01 Crucial Feature 02 Crucial Feature 03 Relax Image
  #1 (permalink)  
Old 29-09-2009, 10:53 AM
Junior Member
 
Join Date: Sep 2009
Posts: 2
Default ruby on rails web app setup issue

1. Am having a issue setting up a simple ruby webapp, tried following & get an abort error on "rake" cmd:
a. goto \public_html dir
b. type "rails test", which creates a default rail project
c. type "cd test" to go into new project dir
d. type "script/generate model person" to generate new object
e. changed contents of "test/db/migrate/create_people.rb", see below
f. type "rake db:migrate" to migrate new db changes to sqlite3 backend but get an "rake aborted! no such file to load -- sqlite3" error message at this stage...if I do "gem list sqlite3-ruby"...it lists current version is "sqlite3-ruby (1.2.5)...

2. Is it possible to change the public access webroot dir from "~/public_html" to "~/current/public" ?

--------------------------------------------------------------------------------
test/db/migrate/create_people.rb file contents
--------------------------------------------------------------------------------
#sorry don't know how to turn smiling face off, should be ":P" instead of smily face below...
class CreatePeople < ActiveRecord::Migration
def self.up
create_table eople do |t|
t.string "name"
end
end

def self.down
drop_table eople
end
end

Last edited by dqtrinh; 29-09-2009 at 11:25 AM.
Reply With Quote
  #2 (permalink)  
Old 29-09-2009, 11:40 AM
Junior Member
 
Join Date: Mar 2009
Posts: 26
Default

Hello dqtrinh,

Regarding first issue, Kindly ensure that you have sqlite3-ruby & its dev packages installed in the server along with sqlite3-ruby gem.

Kindly refer following link to create and run a ruby on rails application in cpanel..

Creating and Running a Ruby On Rails application in cPanel - Crucial Paradigm // Crucial Paradigm - Official Blog

Regarding second question, it is possible to set custom application path from cpanel.

Please refer following link for more details.

DeployingRuby < AllDocumentation/RubyonRails < TWiki
__________________
Sherin Geoge
Crucial Paradigm Statff
Reply With Quote
  #3 (permalink)  
Old 29-09-2009, 05:46 PM
Junior Member
 
Join Date: Sep 2009
Posts: 2
Default

Sherin,

Thanks for the info but I can't see a Ruby on Rails icon in cpanel, only RubyGems (fyi...am on the Freedom250 account)...

The sqlite gem is definitely installed because when I do "gem list sqlite3-ruby"...it lists current version is "sqlite3-ruby (1.2.5)...

Thanks.

Regards,
Dung
Reply With Quote
  #4 (permalink)  
Old 06-10-2009, 12:04 PM
Junior Member
 
Join Date: Mar 2009
Posts: 26
Default

Hello Dung,

We don't provide Ruby on Rails in "Freedom250" plan.

Please upgrade to our "Business Web Hosting" plan, if you wish to use Ruby on Rails.

Please refer following link for more details.

Business Web Hosting & Business Web Hosting Packages Australia
__________________
Sherin Geoge
Crucial Paradigm Statff
Reply With Quote
Reply

Tags
ruby rake

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

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



All times are GMT +11. The time now is 09:14 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

Copyright 2003-2010 © Crucial Paradigm Pty Ltd, All Rights Reserved