我想在免费的heroku实例中托管couchdb。我在stackoverflow上找到了一个答案,它说,可以在heroku上托管erlang代码。
现在我有了想法,在heroku上托管couchdb。但它不起作用。这是我的尝试:
.>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'
但它无法推动。
这是Procfile:
web: erl -pa ebin deps/*/ebin -noshell -boot start_sasl -s reloader -s couchdb
任何人想要免费提供couchdb实例的想法或其他选择吗? :)
答案 0 :(得分:1)
Heroku构建了他们的多语言平台,目前支持Ruby或Rails,Node.js,Java,Spring或Play,Python或Django,Clojure和Scala(source)。
包括Erlang在内的所有其他语言都是使用 build pack 构建的。你可以找到Erlang build pack on github。运行自述文件中的说明,你应该好好去。