尝试使用自定义构建包时出错

编程入门 行业动态 更新时间:2024-10-28 02:28:27
本文介绍了尝试使用自定义构建包时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图在Heroku上使用phantom.js custom buildpack( https:// github。 com / stomita / heroku-buildpack-phantomjs )

I'm trying to use phantom.js custom buildpack on Heroku (github/stomita/heroku-buildpack-phantomjs)

我按照指示,并创建了一个项目,

I followed the directions and created a project with

heroku create --stack cedar --buildpack github/stomita/heroku-buildpack-phantomjs.git

但是当我做的一切似乎都出错了。我最初以为这是其他一些问题( Heroku运行rake db:迁移错误与没有这样的文件加载 - 捆绑/设置),但是在创建没有buildpack的新应用程序之后实现它是导致问题的构建包。

But when I do that everything seems to go wrong. I initially thought it was some other problem(Heroku run rake db:migrate error with "no such file to load -- bundler/setup") but realized after creating a new app without the buildpack that it is the buildpack that is causing the problem.

基本上当我使用buildpack时,一切都出错:我的进程都没有被启动,捆绑进程不起作用等等。

Basically when I use the buildpack, everything goes wrong: None of my processes gets launched, bundle process doesn't work, etc.

如何解决这个问题?

推荐答案

这对我有用:

  • 运行 heroku create --stack cedar --buildpack github/stomita/heroku-buildpack-phantomjs.git 在您的Heroku帐户上创建一个新的Heroku应用程序。
  • 转到Heroku并找到您的应用程序存储库。
  • 查看 git@heroku:stark-mist-2296.git 并更改为克隆目录。
  • 运行 rails new。创建一个新的空白Rails应用程序。
  • 更改 Gemfile 在Heroku上使用Postgres - pg 而不是 sqlite3 。
  • 运行 git push origin master 。
  • Run heroku create --stack cedar --buildpack github/stomita/heroku-buildpack-phantomjs.git to create a new Heroku app on your Heroku account.
  • Go to Heroku and find your app repository.
  • Check out git@heroku:stark-mist-2296.git and change into the clone directory.
  • Run rails new . to create a new blank Rails app.
  • Change Gemfile to use Postgres on Heroku—pg instead of sqlite3.
  • Run git push origin master.
  • 你应该会看到一个空白的Rails应用程序。

    You should see a blank Rails app.

    可能是你没有使用

    参考

    • Heroku配置和配置Vars
    • Heroku, "Configuration and Config Vars"

    更多推荐

    尝试使用自定义构建包时出错

    本文发布于:2023-11-25 07:22:45,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1628845.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:自定义

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!