SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Dec 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post [EASY QUESTION] HELP How to mount my application on my Ruby mounted?

    Here is my complete process before this last Step:

    I have a Hosting named Hostmonster.

    Using SSH conection the ruby on rails is running on my hosting.
    My link shows

    Welcome aboard
    You’re riding Ruby on Rails!
    Getting started
    Here’s how to get rolling:

    1.- Use script/generate to create your models and controllers
    To see all available options, run it without parameters.

    2.- Set up a default route and remove or rename this file
    Routes are set up in config/routes.rb.

    3.- Create your database
    If your application was created with the Cpanel Rails utility then your application has been set up to use MySQL as it's database backend. Make sure that you create a database for it to use inside of your CPanel and then edit config/database.yml with your username and password. By default Rails uses SQLite. If you are using the default Rails configuration then you will need to run rake db:migrate to create your database.

    I have 2 DB created, the Production DB and the Development DB

    Everything looks fine at this step.

    I have my aplication (I downloaded from internet only for example purpose, this runs on Ruby and rails of course)
    These are the files in my App downloaded:

    ..
    []app
    []config
    []db
    []doc
    []lib
    []log
    []public
    []script
    []sysconfig
    []test
    []vendor
    .gems
    .hg_archival.txt
    .hgignoreCapfileideax
    .tmproj
    LICENCE
    Rakefile
    README
    tsearch2.sql

    I have 2 folders created on my Hosting, the Hidden and the "public" folder

    In my hidden folder I have the clean structure of rails I think.
    ..
    []app
    []config
    []db
    []doc
    []lib
    []log
    []public
    []script
    []test
    []tmp
    []vendor
    config.ru
    Rakefile
    README

    And in My public folder:
    ..
    []cgi-bin
    []images
    []javascripts
    []stylesheets
    .httaccess
    400.shtml
    401.shtml
    403.shtml
    404.html
    404.shtml
    422.html
    500.html
    500.php
    500.shtml
    default.html
    dispatch.cgi
    dispatch.fcgi
    dispatch.rb
    favicon.ico
    index.html
    robots.txt

    That's all what I have to say, I think the problem is creating the connection here "Routes are set up in config/routes.rb."

    I think that's my problem, let me know if I'm OK.

    You must know I'm "cero" in linux commands.

  2. #2
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    2,285
    Mentioned
    181 Post(s)
    Tagged
    4 Thread(s)
    That page that displayed should *also* indicate that you must remove the "index.html" file that resides in the Public folder.
    This is what is being called by default (by your host). If you remove that file, then the output of your Rails app will display.

    You best friend when learning/building/working-on Ruby on Rails app is the log.
    Try this command: tail log/development.log
    and then access your Rails application from the Internet. The log shows you exactly what is happening.
    This is an excellent way to gain a deeper understanding of Rails.

    Good luck.
    Have fun
    Don't be yourself. Be someone a little nicer. -Mignon McLaughlin, journalist and author (1913-1983)


    Literally, the best app for readers.
    Make Your P@ssw0rd Secure
    Leveraging SubDomains

  3. #3
    SitePoint Member
    Join Date
    Dec 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello, thanks for your answer, where is the location to upload my APP? the public or the private folder?

  4. #4
    SitePoint Member
    Join Date
    Dec 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I did well I think, My APP is mounted but something with DB is wrong now.

    This is the message:

    rake db:seed
    (in /home2/walterc1/ideax)
    DEPRECATION WARNING: Rake tasks in vendor/plugins/acts_as_tsearch/tasks, vendor/plugins/acts_as_tsearch/tasks, vendor/plugins/fixture_scenarios/tasks, vendor/plugins/fixture_scenarios_builder/tasks, vendor/plugins/rails-authorization-plugin/tasks, vendor/plugins/rails_rcov/tasks, and vendor/plugins/ym4r_gm/tasks are deprecated. Use lib/tasks instead. (called from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.11/lib/tasks/rails.rb:10)
    rake aborted!
    no such file to load -- rcov/rcovtask
    /home2/walterc1/ideax/Rakefile:11
    (See full trace by running task with --trace)
    Any suggestions?


Bookmarks

Posting Permissions

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