エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
running rails app on heroku, can't see static pages in /public folder
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
running rails app on heroku, can't see static pages in /public folder
I have a couple static pages which when running locally work as localhost:3000/foo.html, but this... I have a couple static pages which when running locally work as localhost:3000/foo.html, but this doesn't work once uploaded to heroku. I tried adding the following to the routes.rb file: match '/foo', :to => redirect('/public/foo.html') but that doesn't seem to work, it redirects me to foobar.com/public/foo.html, but still finds nothing there.

