Comments (3)
Hi @takeAbao
The detection logic for the existence of the init.r
file is case-sensitive, so it would have failed for init.R
.
The error message in the log indicates this:
...
remote: ! Push rejected, no Cedar-supported app detected
...
from heroku-buildpack-r.
OK, now I see that. I corrected the case-sensitivity, but now I get this:
ray@ray-ThinkCentre-M73 ~/test-app $ git push heroku master
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (6/6), 820 bytes | 0 bytes/s, done.
Total 6 (delta 1), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Fetching custom git buildpack... done
remote: -----> R app detected
remote: Vendoring R 3.1.0 for cedar stack
remote: Downloading and unpacking R binaries (http://heroku-buildpack-r.s3.amazonaws.com/cedar/R-3.1.0-binaries-20141127-0021.tar.gz)
remote:
remote: gzip: stdin: not in gzip format
remote: tar: Child returned status 1
remote: tar: Exiting with failure status due to previous errors
remote:
remote: ! Push rejected, failed to compile R app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to r-test-app.
remote:
To https://git.heroku.com/r-test-app.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/r-test-app.git'
Really appreciate the help guys!
I believe I used the proper buildpack like so:
BUILDPACK_URL: http://github.com/virtualstaticvoid/heroku-buildpack-r.git#cedar-14
from heroku-buildpack-r.
Hi @takeAbao
I have tested this and can't replicate your issue:
$ mkdir issue-42; cd issue-42
$ git init
$ touch init.r
$ git add --all
$ git commit -m "test"
$ heroku create --stack cedar-14 --buildpack https://github.com/virtualstaticvoid/heroku-buildpack-r.git#cedar-14
Creating issue-42... done, stack is cedar-14
Buildpack set. Next release on issue-42 will use https://github.com/virtualstaticvoid/heroku-buildpack-r.git#cedar-14.
https://issue-42.herokuapp.com/ | https://git.heroku.com/issue-42.git
Git remote heroku added
$ git push heroku master
Counting objects: 3, done.
Writing objects: 100% (3/3), 228 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Fetching custom git buildpack... done
remote: -----> R app detected
remote: Vendoring R 3.1.0 for cedar-14 stack
remote: Downloading and unpacking R binaries (http://heroku-buildpack-r.s3.amazonaws.com/cedar-14/R-3.1.0-binaries-20141127-0021.tar.gz)
remote: Executing init.r script
remote: R 3.1.0 successfully installed
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote:
remote: -----> Compressing...
...
remote: Verifying deploy... done.
To https://git.heroku.com/issue0-42.git
* [new branch] master -> master
$
Looking at your log, it appears that your app is deployed on the cedar
stack and not cedar-14
.
I noticed too the message "WARNING: Toolbelt v3.26.1 update available.", which may mean that that version isn't stack aware? (guessing)
Also, it is possible to specify heroku create --stack cedar --buildpack https://github.com/virtualstaticvoid/heroku-buildpack-r.git#cedar-14
which would be incompatible.
from heroku-buildpack-r.
Related Issues (20)
- I would really appreciate a walkthrough for a regular R user HOT 3
- renv 12 in my renv.lock file breaks the 'compilation' HOT 5
- GPG error HOT 3
- Rplumber test application delivers error HOT 5
- Increasing timeout HOT 1
- Support heroku-20 stack HOT 1
- Building with dokku HOT 2
- IsoSpecR not installed
- Skip BUILD_DIR to /app rsync when building in /app
- There is no package called 'renv' HOT 2
- Multiple-app hosting unavailable HOT 6
- Timeout when installing HOT 3
- Slow build time - Caching issue? HOT 2
- Authentication/Browser Problem when deployed. HOT 7
- Add Support for Heroku-22 HOT 9
- Add telegram.bot example and default packages HOT 6
- Use reticulate package HOT 1
- Aptfile installation fails HOT 1
- Could I use cloud native build packs? HOT 2
- renv 1.0.2 Error in if (n == 1) word else paste(word, "s", sep = ""): app[web.1]: the condition has length > 1 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-buildpack-r.