Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6902245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:46:28+00:00 2026-05-27T07:46:28+00:00

I have my beginner Ruby application working perfectly on my local server using Rack

  • 0

I have my beginner Ruby application working perfectly on my local server using Rack and Sinatra. I’m in the process of getting it to work on my VPS webhost.

Here are my questions:

  1. I tried running:

    rackup config.ru
    

    via SSH, and nothing happens, it just shows an empty line and I have to hit CNTRL+C to abort. Does anyone have ideas why?

    If I run ruby main.rb, it successfully says Sinatra is taking the stage, but that’s it, so I know you can’t have it working with JUST that, but at least Sinatra is working properly.

  2. I have a public_html folder. Is the main.rb and config.ru supposed to go in root “/” or is it supposed to go in public_html?

    If it’s the later, and I put a blank index.html inside public_html, will rackup know to ‘replace’ it with main.rb in / when it’s running, and if it’s not it just displays the index.html in public_html

  3. When all is up and running, do I need to access the Ruby app via site.com:xxxx (xxxx=whatever port), or will I simply be able to go to site.com

    You dont really need my code for main.rb, it just outputs “hello”

    Here’s config.ru:

    require File.dirname(__FILE__) + "/main"
    run Sinatra::Application
    
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:46:29+00:00Added an answer on May 27, 2026 at 7:46 am

    Q1, just rackup without config.ru

    Q2, in general, the static folder name is public, not public_html unless you set it manually. other files, such as the main.rb, that is supposed to put into root directory, stay with the config.ru in the same folder if the code of main.rb as your given.

    Q3, access by http://0.0.0.0:9292/ if you use the rackup by default setting to rack up the web server

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a rank beginner with Ruby and Sinatra, but have managed to come up
As a beginner in Ocaml, I have this current working code: ... let ch_in
I am a beginner with Ruby on Rails. I have a question regarding organizing
I have a basic Ruby app that I am building with Sinatra, Datamapper and
I am a beginner Ruby on Rails developer. So far I have created several
I've just started using Ruby on Rails and so far it's working nicely. I'm
I have a beginner question using pointers in delphi. I create an object and
I am a beginner at Ruby on Rails. Currently, I have the following problem:
I'm just learning Ruby and have and have an extremely beginner question. Is the
I'm new to Java and I have a beginner question: NumberFormat is an abstract

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.