Deploy Play 2.2.1 to Heroku - heroku

I'm not able to deploy a Play 2.2.1 app to heroku. Here is what I see:
Delta compression using up to 4 threads.
Compressing objects: 100% (1056/1056), done.
Writing objects: 100% (1163/1163), 271.55 KiB | 136 KiB/s, done.
Total 1163 (delta 565), reused 0 (delta 0)
-----> Removing .DS_Store files
-----> Fetching custom git buildpack... done
! Push rejected, no Cedar-supported app detected
To git#heroku.com:pacific-chamber-5618.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:pacific-chamber-5618.git
Any reasons as to why this should fail?

Related

Heroku Git error, please try again shortly

I get this error when deploying my Heroku application from the CLI. It always worked fine, even today a moment ago. Now I'm getting this:
$ git push heroku main
Enumerating objects: 46, done.
Counting objects: 100% (46/46), done.
Delta compression using up to 8 threads
Compressing objects: 100% (31/31), done.
Writing objects: 100% (31/31), 4.62 KiB | 788.00 KiB/s, done.
Total 31 (delta 23), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! Heroku Git error, please try again shortly.
remote: ! See http://status.heroku.com for current Heroku platform status.
remote: ! If the problem persists, please open a ticket
remote: ! on https://help.heroku.com/tickets/new
remote: ! and provide the Request ID dee02a42-c0d2-4740-b9f3-cbfb58c7d95f
remote:
To https://git.heroku.com/vaquita-escolar.git
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/vaquita-escolar.git'
Advice is appreciated.
It was a temporary Heroku issue. It works now (today).

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

Fail to deploy to Heroku: Argument list too long - bin/receive_untrusted

When I try to update my Java app on Heroku it fails with a "Argument list too long - bin/receive_untrusted". This happens before the actual build process starts and it's the only error that I'm getting. Of course it build perfect locally..
Counting objects: 95506, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (28630/28630), done.
Writing objects: 100% (95506/95506), 16.95 MiB | 2.82 MiB/s, done.
Total 95506 (delta 42943), reused 94815 (delta 42643)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: Build stream timed out, reverting to polling...
remote:
remote: Build output:
remote: Argument list too long - bin/receive_untrusted
remote: ! Push rejected to xxxxx.
remote:
To https://git.heroku.com/xxxx.git
! [remote rejected] develop -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/xxxxx.git'
The only thing that fixed it for me was resetting the Git repo in Heroku and pushing it from scratch, a described in this answer.

Host couchdb on 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.

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

Resources