Host couchdb on heroku - heroku

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.

Related

Error: Git "Error deploying the application"

I'm using Git to mount an app to Scalingo, but when I do "git push scalingo master" it shows me this:
XXXXX+AAAA#AAAA MINGW32 ~/Desktop/Scalingo (master)
$ git push scalingo master
Counting objects: 1120, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1043/1043), done.
Writing objects: 100% (1120/1120), 16.71 MiB | 1.53 MiB/s, done.
Total 1120 (delta 208), reused 0 (delta 0)
<-- Start deployment of vinumtest -->
Fetching source code
Fetching deployment cache
-----> Installing requirements with pip
You must give at least one requirement to install (see "pip help
install")
Build complete, shipping your container...
Waiting for your application to boot...
! Error deploying the application
! → Your application has stopped unexpectedly when starting
! Read the output and fix your code accordingly
! Common errors: http://doc.scalingo.com/deployment/start-
error#crashed
! Need help? Email us: support#scalingo.com
To git#scalingo.com:test.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#scalingo.com:test.git'
The actual result is that I cant do the command "git push scalingo master"
As the message in the deployment is telling you:
You must give at least one requirement to install (see "pip help install")
It seems that your requirements.txt does not contain any dependency. All the Python modules you're using should be listed in this file.
What kind of application are you trying to deploy?
Whatever is the app, you have to ensure that your application is working on your local workstation before deploying it.
Regards,
-- Léo

cant git push heroku master - buildpacks

well simply this is what i am getting;
sa#sa-VPCW11S1E:/opt/hubot/bin$ heroku buildpacks
=== young-everglades-12415 Buildpack URL
heroku/java
sa#sa-VPCW11S1E:/opt/hubot/bin$ sudo git push heroku master
Counting objects: 3, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 2.14 KiB | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Failed to detect set buildpack https://codon- buildpacks.s3.amazonaws.com/buildpacks/heroku/java.tgz
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to young-everglades-12415.
remote:
To https://git.heroku.com/young-everglades-12415.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/young- everglades-12415.git'
sa#sa-VPCW11S1E:/opt/hubot/bin$
although i did set a buildpack on the app git push failed because no buildpack detected ?
How can i resolve this, and is it actually the right steps towards deploying hubot ?
The heroku build packs still use the detection script to identify the language in use. Since Hubot is not a java project and it looks like you are using the java build pack, I suspect the detection script failed.
To fix this, try removing the buildpack.
% heroku buildpacks:remove heroku/java
After this I would try,
% git push heroku master
(Optional) I believe the rediscloud addon is needed for some scripts. You can add it with,
% heroku addons:create rediscloud
Then watch the logs heroku logs and see what happens.
There is a good deployment guide in hubot/deploying/heroku.md

Deploy on Heroku error Play Framework

I have one problem.
I have one app in play framework.
I'm using play 2.2. My code is github and when I send command "git push heroku master" I have this problem:
Initializing repository, done.
Counting objects: 574, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (512/512), done.
Writing objects: 100% (574/574), 1.45 MiB | 315 KiB/s, done.
Total 574 (delta 172), reused 0 (delta 0)
-----> Fetching custom git buildpack... done
! Push rejected, no Cedar-supported app detected
To git#heroku.com:projetosplay.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:projetosplay.git'
I have aplication.conf in my github and I set my project to use play 2 in heroku:
heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-scala.git
I think is stange is that which command I type always give me the same message (example):
heroku open
! No app specified.
! Run this command from an app folder or specify which app to use with --app APP.
Then I put: heroku open --app .git and is work.
Anybody has one idea ?
thanks !!!
Did you perhaps forget to create a procfile? You need such a file with e.g. following content:
web: play run --http.port=$PORT $PLAY_OPTS

Push play2 yeoman app to Heroku

Trying to push play2-yeoman to heroku.
As discussed here , I did the following
heroku create --buildpack https://github.com/47deg/heroku-buildpack-scala.git
I see the following
Creating frozen-springs-5883... done, stack is cedar
BUILDPACK_URL=https://github.com/47deg/heroku-buildpack-scala.git
http://frozen-springs-5883.herokuapp.com/ | git#heroku.com:frozen-springs-5883.git
I looked at the forked buildpack, it uses a variable called ${UI_FILES} , so I added that to heroku config using
heroku config:set UI_FILES=ui
However when I try to push I get the following error message
Initializing repository, done.
Counting objects: 889, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (367/367), done.
Writing objects: 100% (889/889), 1.24 MiB | 2.17 MiB/s, done.
Total 889 (delta 312), reused 845 (delta 294)
-----> Fetching custom git buildpack... done
! Push rejected, no Cedar-supported app detected
To git#heroku.com:frozen-springs-5883.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:frozen-springs-5883.git'
According to Heroku's devcenter, you can force heroku to build using the Play 2 buildpack by executing the following command:
heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-scala.git

git push heroku master error

I'm encountering a problem deploying heroku. The online instructions suggest I follow these steps: https://devcenter.heroku.com/articles/django#deploy-to-heroku
However, when I get to "git push heroku master" I get the following error:
Counting objects: 12, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (10/10), done.
Writing objects: 100% (12/12), 3.44 KiB, done.
Total 12 (delta 1), reused 0 (delta 0)
! Heroku push rejected, no Cedar-supported app detected
To git#heroku.com:mysterious-peak-4781.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:mysterious-peak-4781.git'
Can someone tell me whats wrong?
Rename the app as soon as you create it. It is a must in heroku i guess.
use this command
heroku apps:rename NAME
NAME = what ever name you want to put.
If the above does not work,
type
cd .git
vi config
you will get something like this.
[remote "heroku"]
url = git#heroku.com:NAME.git
This is also a method. Change the name and try.

Resources