deployment - Run rails app under subfolder -


i've been testing rails app on localhost:3000 , works fine. however, when deploying host, root url is:

http://99.88.77.66/~username

i not have domain name @ point.

when point browser above url root not found for:

/~username

alternatively for

http://99.88.77.66/~username/controller/index

i route not found:

/~username/controller/index

i'm using rials 4.2.3 , ruby 2.0.

how can make routes work kind of subfolder until can appropriate domain name?

try setting config.relative_url_root in config/environments/production.rb:

http://guides.rubyonrails.org/configuring.html#deploy-to-a-subdirectory-relative-url-root


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -