ruby on rails - Missing config.ru when using rackup -
when running rackup command, error message shown:
[root@li608-165 ~]# rackup configuration /root/config.ru not found
i installed ruby on rails.
system: centos 6.5 ruby: 1.9.3-p547
you need add file called config.ru
root/
directory.
config.ru
configuration file rackup, , controls rackup
run.
look @ section 2.3 explanation: http://guides.rubyonrails.org/rails_on_rack.html
to use rackup instead of rails' rails server, can put following inside config.ru of rails application's root directory:
# rails.root/config.ru require ::file.expand_path('../config/environment', __file__) use rails::rack::debugger use rack::contentlength run rails.application
Comments
Post a Comment