deployment - Run rails app under subfolder -
i've been testing rails app on localhost:3000 , works fine. however, when deploying host, root url is:
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
Post a Comment