Ruby on Rails on BlueHost shows default page -
i cannot deploy ruby on rails application bluehost. after completing these steps, googling day , trying every possible configuration unable make work.
my application using ruby version 2.3.0 , rails 4.2.7.1. created subdomain api.appname.com, linked public folder , placed .htaccess file inside it. link located inside ~/public_html/appname/ , points ~/rails_apps/appname/public.
i noticed subdomain content changes when edit ~/public_html/appname/.htaccess, not when edit ~/public_html/appname/public/.htaccess. example if replace appname/.htaccess public/.htaccess shows passenger error:
ruby (rack) application not started error message: no such file or directory - config.ru when add .htaccess line documentroot ~/rails_apps/appname/public shows apache 500 error.
i aware of this stackoverflow question not have helpful answers , old , not any.
also succeeded run app locally using this article since native ruby 1.9.3 old.
i sure i'm missing .htaccess files. how configure correctly?
update 1:
as appears, had remove ~/public_html/appname/ , replace symlink ~/rails_apps/appname/public. should have been obvious start. error. logs.
it apears passenger uses ruby version 1.9.3, need use version 2.0.0, installed in ~/ruby/bin. when add
passengerruby /home1/advecion/ruby/ruby-2.3.0/ruby to .htaccess file apache 500 error , passengerruby not allowed here in logs.
how use ruby-2.3.0?
Comments
Post a Comment