|
|||
|
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 eopleend end Last edited by dqtrinh; 29-09-2009 at 11:25 AM. |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
![]() |
| Tags |
| ruby rake |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
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 ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0



eople do |t|

Linear Mode
