buildpack

How to unzip files in a Heroku Buildpack

家住魔仙堡 提交于 2019-12-06 01:44:37
问题 I'm writing a custom Heroku buildpack (heroku-buildpack-fantom) for Fantom, and as part of the compile script I've downloaded a .zip file (from a language vendor), but how do I unzip it? unzip is not a recognised command. gunzip exists but I can't use it to unzip .zip files. What am I missing? 回答1: Even though (by default) Linux does not come pre-installed with unzip , the Heroku dyno does have a jar command. So the following works okay: > jar xf wotever.zip 回答2: Be sure to run the 'file'

Configuring a single page Create-React-App on Heroku

扶醉桌前 提交于 2019-12-05 19:25:59
With Firebase Hosting, when you deploy an app you are asked whether to rewrite all urls to /index.html. This means react-router routes would be properly fired whether they are accessed directly or navigated to from the homepage. We use Create-react-app and Create-react-app-buildpack to deploy to Heroku. How can we rewrite all the URLs to /index.html in the same manner? Following this issue , explaining about the routes directive, I configured a static.json in the root to no avail: { "routes": { "/images/*": "/images/", "/legal/*": "/images/", "/media/*": "/media/", "/fav/*": "/fav/", "/styles/

heroku outputs “error fetching custom buildpack”, but only sometimes

江枫思渺然 提交于 2019-12-05 10:57:34
I have a Django project hosted on Heroku with a buildpack forked from cirlabs/heroku-buildpack-geodjango . Sometimes when I push to Heroku it responds with Counting objects: 16, done. Delta compression using up to 4 threads. Compressing objects: 100% (9/9), done. Writing objects: 100% (9/9), 790 bytes, done. Total 9 (delta 7), reused 0 (delta 0) -----> Heroku receiving push -----> Fetching custom buildpack... failed ! Heroku push rejected, error fetching custom buildpack To git@heroku.com:taplister-staging.git ! [remote rejected] dev -> master (pre-receive hook declined) error: failed to push

Constructing Custom Heroku Ruby/Rails Buildpack for Web App Using Taglib-Ruby

你。 提交于 2019-12-03 17:33:12
I've built an application using Rails 3.2 that makes use of the taglib-ruby gem. I need to upload this app to Heroku, but it cannot successfully build the taglib-ruby gem because the associated C++ taglib library needs to be installed on the machine. Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb checking for main() in -lstdc++... yes checking for main() in -ltag... no You must have taglib installed in order to use taglib-ruby. Debian/Ubuntu: sudo apt-get install libtag1-dev Fedora/RHEL: sudo yum install taglib-devel Brew: brew

Heroku: unable to connect to chromedriver 127.0.0.1:9515 when using Watir/Selenium

a 夏天 提交于 2019-12-03 17:07:43
问题 This runs locally (without specifying driver_path ), but not on Heroku. Code: Selenium::WebDriver::Chrome.driver_path = ENV['GOOGLE_CHROME_SHIM'] browser = Watir::Browser.new :chrome I've confirmed below values in heroku rails console ENV['GOOGLE_CHROME_BIN'] => "/app/.apt/opt/google/chrome/chrome" ENV['GOOGLE_CHROME_SHIM'] => "/app/.apt/usr/bin/google-chrome-stable" Installed Buildpacks: https://github.com/heroku/heroku-buildpack-chromedriver https://github.com/heroku/heroku-buildpack-google

Have you managed to make your node nginx proxy setup on Heroku work?

穿精又带淫゛_ 提交于 2019-12-03 09:51:39
问题 Have you managed to make your node + nginx proxy setup on Heroku work? Could you, please, tell me how have your organized the directories structure and the files in each directory before doing "git push heroku master"? Which buildpack did you use? I am getting the message "Push rejected, no Cedar-supported app detected" every time I do "git push heroku master". I have put a "nginx.conf.erb" file in a "/conf" directory. Thank you. 回答1: I have used a Node.js + NGINX setup on heroku for many

Accessing the java executable from a cloudfoundry task command (cf run-task)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 21:09:23
I need the java executable to run a java -jar from a cloudfoundry task command. Here is how I try to run the task: cf run-task bignibou-batch "java -jar bignibou-batch/build/libs/bignibou-batch.jar" Here is the error message I get: 2016-12-24T12:53:30.002+01:00 [APP/TASK/358e02df/0] [ERR] bash: java: command not found My manifest uses the java buildpack as follows (see bignibou-batch app at the bottom): --- buildpack: https://github.com/cloudfoundry/java-buildpack.git memory: 1024M env: APPLICATION_URL: http://bignibou-server.cfapps.io/ APPLICATION_MAIL_NO_REPLY_ADDRESS: balteo@bignibou-server

Access current git commit number from within Heroku app

痞子三分冷 提交于 2019-12-01 08:08:30
I know the slug compiler removes the .git directory when creating a heroku slug, but is there any way to configure Heroku so that I can access the currently running git commit number from within my scripts? I'd like to be able to have a small link on my sinatra app (run within Heroku) which says "running version e72fb274a0 " (or something similar). How can I retrieve this, or force the slug compiler to add it to an environment variable? PROGRESS: I reckon the best way to do this is to make a custom buildpack which writes the git commit version number to the heroku slug before the .git

Access current git commit number from within Heroku app

爷,独闯天下 提交于 2019-12-01 06:49:16
问题 I know the slug compiler removes the .git directory when creating a heroku slug, but is there any way to configure Heroku so that I can access the currently running git commit number from within my scripts? I'd like to be able to have a small link on my sinatra app (run within Heroku) which says "running version e72fb274a0" (or something similar). How can I retrieve this, or force the slug compiler to add it to an environment variable? PROGRESS: I reckon the best way to do this is to make a

How to run an executable on Heroku from node, works locally

坚强是说给别人听的谎言 提交于 2019-11-30 17:13:23
问题 This is my first SE question. Usually I can find an answer to anything fairly easily through this great website, but unfortunately on this occasion I can't find anything on what I am looking for, either here or elsewhere. Let me explain the problem: I have written a C++ program to do some numerical computations. It takes command line arguments and writes to stdout and works fine on my system running OSX. I want to host this online for my peers to try it out more easily, and so I wrote some