xhan
xhan

Reputation: 6307

rails routes for static binary file

I placed some binary file under `Public' folder, and while trying to access it through http server,an error occurs:

It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded. A required library may not installed. Please install all libraries that this application requires.

I need place some binary files(dmg,exe,etc) on my rails app and allow others to download it.

Upvotes: 1

Views: 520

Answers (1)

MDaubs
MDaubs

Reputation: 3004

Sounds like a web host issue to me... Apache or Nginx would normally handle static files without Rails getting called. Unless you are using ActionDispatch::Static or are in development mode?

Upvotes: 2

Related Questions