English 中文(简体)
本地主机上可用的页面, 无法在 heroko app 上查阅
原标题:pages available on localhost not available on heroku app

我刚刚开始在铁路上制作应用程序。 当我运行本地服务器时, 链接到一些我制作的静态页面( 存储在应用程序/ 视图/ 页面/ 文件夹中 ) 。 然而, 当我成功地将此应用程序推到星库并试图浏览到这些页面时, 我得到了标准的“ 遗憾出错” 信息。 我修改了索引页面, 以便知道这些更新是有效的。 任何帮助都会受到欢迎 。

http://railsapps.github.com/rails-heruko-tutory.html.com/rails-heruko-tutory.html/arrils-heruko-tutory.com/rails-heruko-tutory.html/aref="https://stackoverflow.com/sues/78223020/ssimple-test-app-deploys-to-heruko- but-wont-run" 。

我跑在雪松堆堆 并运行 运行 rake db: migraty

when i do heroku run rake routes it returns:

pages_home GET /pages/home(.:format)    pages#home
pages_contact GET /pages/contact(.:format) pages#contact
pages_about GET /pages/about(.:format)   pages#about

我骑着铁路3.2,但红宝石1.8.7 我骑着橡皮狮子

最佳回答

Ok, 因此错误在于我没有预先编译我的 CSS 。 所以您只需要先编译它。 要做到这一点, 只需输入 < code> bundle exec rake 资产 : precompile , 然后完成所有正常的 Git 任务、 推车和 heroko 推车业务 。

问题回答

暂无回答




相关问题
Packaging precompiled binaries inside of a gem

I ve got a ruby web app that uses lilypond to generate sheet music based on user input. I d like to move the hosting to heroku (I ve recently used heroku on a few projects and really liked it, plus ...

ActiveScaffold on Heroku s read-only file system?

ActiveScaffold apparently creates public/blank.html every time the server starts, even if that file already exists (so adding it to version control doesn t help). This is causing my application to ...

git push heroku master permission denied on VISTA

(Using Vista)I m trying to clone an app from my GitHub Repository and push it into Heroku. Okay, so I ve tried to create an SSH key so many times with this: `ssh-keygen -t rsa` It seems to go ...

SSH Public key denied on "git clone" command

I am trying to clone a git repo that I forked in my GitHub Repository.It s a rails app. I want to clone it on my local git so that I can push it onto heroku. I generated a set of rsa keys and copied ...

heroku using git branch is confusing!

Ok, so I have a big github project that i m not supposed to merge my little Stacia branch into. However, it seems like Heroku only takes pushing MASTER seriously. It looks like I pushed my branch, but ...

PostgreSQL GROUP BY different from MySQL?

I ve been migrating some of my MySQL queries to PostgreSQL to use Heroku. Most of my queries work fine, but I keep having a similar recurring error when I use group by: ERROR: column "XYZ" must ...

热门标签