主机couchdb在heroku [英] Host couchdb on heroku

查看:185
本文介绍了主机couchdb在heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在一个免费的英雄实例中托管couchdb。我在stackoverflow上找到一个答案,它说,可以在英雄主机上托管erlang代码。



现在我有了这个想法,在英雄主机上托管couchdb。但它不行。这是我的尝试:

 。> git clone https://github.com/apache/couchdb 
。 git
克隆到couchdb...
remote:计数对象:55066,完成。
remote:压缩对象:100%(1582/1582),完成。
遥控器:总计55066(增量2125),重用3094(增值1808)
接收对象:100%(55066/55066),26.56 MiB | 1.34 MiB / s,完成。
解决三角洲:100%(36610/36610),完成。
签出文件:100%(338/338),完成。

。> cd couchdb

.\couchdb>资源管理器。

.\couchdb> git add。

.\couchdb> git commit -m添加proc文件
[master 9c6da00]添加了proc文件
1个文件已更改,1个插入(+)
创建模式100644 Procfile

.\couchdb> heroku创建couchdb-cl --region e
u --buildpack https://github.com/archaelus/heroku-buildpack-erlang
创建couchdb-cl ... done,区域是eu
BUILDPACK_URL = https://github.com/archaelus/heroku-buildpack-erlang
https://couchdb-cl.herokuapp.com / | git@heroku.com:couchdb-cl.git
Git remote heroku添加

.\couchdb> git push heroku master
输入密码/ c / Users / Imanuel / .ssh / id_rsa':
初始化存储库,完成。
计数对象:40416,完成。
使用多达4个线程的Delta压缩。
压缩对象:100%(12588/12588),完成。
写入对象:100%(40416/40416),17.50 MiB | 562 KiB / s,完成。
总计40416(增量27271),重新使用40371(增量27237)

----->获取定制的git buildpack ...完成

!被拒绝,没有Cedar支持的应用程序检测到

到git@heroku.com:couchdb-cl.git
! [远程拒绝]主 - > master(预收款钩子拒绝)
错误:无法推一些参考git@heroku.com:couchdb-cl.git

但是无法推送。



以下是Procfile:

  web:erl -pa ebin deps / * / ebin -noshell -boot start_sasl -s reloader -s couchdb 

任何人可以免费托管couchdb实例吗? :)

解决方案

Heroku构建了多沟槽平台,目前支持Ruby或Rails,Node.js,Java,Spring或Play, Python或Django,Clojure和Scala(来源)。



所有其他语言包括Erlang都是使用构建包构建的。您可以在github上找到 Erlang构建包。从README运行说明,你应该很好去。


I would like to host couchdb in a free heroku instance. I found here on stackoverflow an answer and it says, it is possible to host erlang code on heroku.

Now I had the idea, to host couchdb on heroku. But it doesn't work. Here is my try:

.>git clone https://github.com/apache/couchdb
.git
Cloning into 'couchdb'...
remote: Counting objects: 55066, done.
remote: Compressing objects: 100% (1582/1582), done.
remote: Total 55066 (delta 2125), reused 3094 (delta 1808)
Receiving objects: 100% (55066/55066), 26.56 MiB | 1.34 MiB/s, done.
Resolving deltas: 100% (36610/36610), done.
Checking out files: 100% (338/338), done.

.>cd couchdb

.\couchdb>explorer .

.\couchdb>git add .

.\couchdb>git commit -m "added proc file"
[master 9c6da00] added proc file
 1 file changed, 1 insertion(+)
 create mode 100644 Procfile

.\couchdb>heroku create couchdb-cl --region e
u --buildpack https://github.com/archaelus/heroku-buildpack-erlang
Creating couchdb-cl... done, region is eu
BUILDPACK_URL=https://github.com/archaelus/heroku-buildpack-erlang
https://couchdb-cl.herokuapp.com/ | git@heroku.com:couchdb-cl.git
Git remote heroku added

.\couchdb>git push heroku master
Enter passphrase for key '/c/Users/Imanuel/.ssh/id_rsa':
Initializing repository, done.
Counting objects: 40416, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (12588/12588), done.
Writing objects: 100% (40416/40416), 17.50 MiB | 562 KiB/s, done.
Total 40416 (delta 27271), reused 40371 (delta 27237)

-----> Fetching custom git buildpack... done

 !     Push rejected, no Cedar-supported app detected

To git@heroku.com:couchdb-cl.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:couchdb-cl.git'

But it fails to push.

Here is the Procfile:

web: erl -pa ebin deps/*/ebin -noshell -boot start_sasl -s reloader -s couchdb

Anyone an idea or maybe another option to host a couchdb instance for free? :)

解决方案

Heroku built their polyglot platform, which currently supports Ruby or Rails, Node.js, Java, Spring or Play, Python or Django, Clojure and Scala (source).

All other languages including Erlang are built using build packs. You can find Erlang build pack on github. Run the instructions from README and you should be good to go.

这篇关于主机couchdb在heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆