尝试使用自定义构建包时出错 [英] error when trying to use custom buildpack
问题描述
我试图在Heroku上使用phantom.js custom buildpack( https:// github。 com / stomita / heroku-buildpack-phantomjs )
I'm trying to use phantom.js custom buildpack on Heroku (https://github.com/stomita/heroku-buildpack-phantomjs)
我按照指示,并创建了一个项目,
I followed the directions and created a project with
heroku create --stack cedar --buildpack http://github.com/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 http://github.com/stomita/heroku-buildpack-phantomjs.git
在您的Heroku帐户上创建一个新的Heroku应用程序。 - 转到Heroku并找到您的应用程序存储库。
- 查看
git@heroku.com:stark-mist-2296.git
并更改为克隆目录。 - 运行
rails new。
创建一个新的空白Rails应用程序。 - 更改
Gemfile
在Heroku上使用Postgres -pg
而不是sqlite3
。 - 运行
git push origin master
。
- Run
heroku create --stack cedar --buildpack http://github.com/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.com: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 ofsqlite3
. - Run
git push origin master
.
你应该会看到一个空白的Rails应用程序。
You should see a blank Rails app.
可能是你没有使用
参考
- Heroku.com, "Configuration and Config Vars"
这篇关于尝试使用自定义构建包时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!