| Home Register Memberlist Help Search Quick Links No Replies |
|
||||||
| Basic How-tos Help Us Noobs by Sharing Your Wisdom |
![]() |
![]() |
|
Thread Tools | ![]() |
|
#1
|
||||
|
||||
|
Install Ruby, Ruby Gem, Fastthread, Mongrel and Rails
Run the following command in root shell: Code:
/scripts/installruby Code:
/scripts/installruby --force Adding the ror_setup Script Run the following command: Code:
/usr/local/cpanel/bin/ror_setup ___________________________________ Check the Gems Installed Check the following gems were all properly installed: Code:
gem list --local Code:
actionmailer (2.3.4) actionpack (2.3.4) activerecord (2.3.4) activeresource (2.3.4) activesupport (2.3.4) cgi_multipart_eof_fix (2.5.0) daemons (1.0.10) fastthread (1.0.7) ffi (0.5.3) gem_plugin (0.2.3) mongrel (1.1.5) rack (1.0.1) rails (2.3.4) rake (0.8.7) rubygems-update (1.3.5) Code:
gem install name Code:
gem install fastthread Install SQLite and SQLite Gem Run the following commands to install SQLite: Code:
yum install sqlite-devel gem install sqlite3-ruby Code:
Status: 500 Internal Server Error no such file to load -- sqlite Install MySQL gem If MySQL will be used for the Rails application, the gem needs to be installed with the following command: Code:
gem install mysql Code:
Status: 500 Internal Server Error no such file to load -- mysql Code:
adapter: mysql database: username_dbname username: username_dbusername password: dbuser's password here The default database for all Rails applications on the server can be set as MySQL rather than SQLite using: Code:
export RAILS_DEFAULT_DATABASE=mysql Install PostgreSQL gem If PostgreSQL will be used for the Rails application, the gem needs to be installed with the following command: Code:
gem install postgres Code:
Status: 500 Internal Server Error no such file to load -- postgres
___________________________________ Install a Rails Application in cPanel In cPanel for your account, click on the Ruby on Rails icon under "Software / Services" area. Under the Create Ruby on Rails Application section, enter the following: App Name app1 Load on Boot? check this box Application Path rails_apps/app1 (auto fills in, do not change) Environment development The application name can be anything, so app1 is just an example. Any name up to 15 characters long is acceptable. The environment type can be changed to production after site development has been finished. The benefit of using development rather than production would be that caching for the pages will not occur in development unlike the production setting. The drawback would be that development sites tend to be slower and use more resources. Development is the best choice for a site being developed and changed, while production is the best choice for a site that has been completed and will not have many coding changes anymore. Now that the settings have been selected, click on the "Create" button to complete the Rails application setup. After the application creates, the screen will redirect to indicate it was successful with the following message: Code:
Your app is installed, its name is app1 ___________________________________ Start a Rails Application in cPanel Under the "Available Ruby on Rails Applications" section, click the Run icon next to the created application under the Actions column. After the application has been started, the screen will redirect to indicate it was successful with the following message: Code:
The following Ruby on Rails application was started: app1 ___________________________________ Check a Rails Application is Working in cPanel Under the "Available Ruby on Rails Applications" section, click the URL icon next to the created application under the Rails Server column. The new application will appear in a browser. If it is working, you will see a message similar to the following: Welcome aboard You’re riding Ruby on Rails! About your application’s environment Click on the "About your application's environment" link to see details on the environment. If everything is working, the details may look similar to the following: Code:
Ruby version 1.8.7 (i686-linux) RubyGems version 1.3.5 Rack version 1.0 Rails version 2.3.4 Active Record version 2.3.4 Active Resource version 2.3.4 Action Mailer version 2.3.4 Active Support version 2.3.4 Application root /home/username/rails_apps/app1 Environment development Database adapter sqlite3 Database schema version 0
__________________
Miraenda ~ Ex uno disce omnes ~ |
|
#2
|
|||
|
|||
|
When i execute ruby setup.rb and set up config file to have it configured for working ad then installing installer script ... till there its going well but after that where gem query is local and gem q-L i am getting missing gem error not sure where i am wrong.
__________________
VMWare |
|
#3
|
||||
|
||||
|
Please post the exact error message you are getting in the log.
__________________
Miraenda ~ Ex uno disce omnes ~ |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. |
||