buildpack

Setting PostgreSQL application_name on Heroku

南笙酒味 提交于 2019-12-11 11:59:19
问题 application_name is a PostgreSQL specific connection parameter which each client can (and should) set when connecting. It later on helps DBAs and operations staff correlate misbehaving queries with a particular bit of application code. This SO question explains how to set application_name using SQLAlchemy, but unfortunately, it doesn't work on Heroku, because setting application_name was added on the PostgreSQL 8.5 branch (which was only released as 9.0 ) whereas the version of PostgreSQL

How do I bundle a Custom C Shared Library with Java Application in Cloud Foundry?

徘徊边缘 提交于 2019-12-11 00:07:45
问题 I have previously been deploying a java application successfully in Cloud Foundry. However, now the developers have added a shared library compiled from C. I have added the .so to the .zip file (I'm using universal packager and deploying to Cloud Foundry by zip file) and ensured the .so is executable. However, when I deploy I get an error: 2016-12-23T14:39:01.013+00:00 [STG/0] [OUT] -----> Java Buildpack Version: eba4df6 | git://github.com/cloudfoundry/java-buildpack.git#eba4df6 2016-12-23T14

github php buildpack supporting DB2 and IBM Cloud php app

☆樱花仙子☆ 提交于 2019-12-10 11:25:24
问题 We have a PHP app on IBM Cloud connected to an instance of DB2 (also on IBM Cloud) that has been working flawlessly for 2 years Up until Sept 16th, we used the buildbpack with our PHP app (so that it could connect to DB2 via the db2_connect PHP function.) Now after the cflinuxfs3 upgrade that buildpack does not work and we are forced to use the " "php_buildpack" community buildpack already installed in Cloud Foundry". however, This new buildpack does not support DB2 connections. When trying

How can I setup and deploy a database with Deis (PaaS)

纵饮孤独 提交于 2019-12-08 15:50:39
问题 I'm trying to setup a database with Deis. I know this is possible, but there doesn't seem to be any documentation about how to do it other than setting an ENV variable.How could I setup say a MongoDB or Cassandra docker container and then deploy that and have my deis app use it? 回答1: If you're trying to deploy now, a possible solution is to set up a docker container, have it publicly route-able, and then configure your application to use that container through an environment variable

Page-break-inside support in phantomjs on heroku

自作多情 提交于 2019-12-08 02:21:42
问题 I have a NodeJS app using PhantomJS to generate PDF files. My app is deployed to Heroku and I'm using this phantom build pack. Unfortunately this build pack does not support the page-break-inside: avoid CSS property. I did a research and found 2 hacks on this GitHub issue page. I've tried both of them, but unfortunately I can't use the CSS one, due to my page structure and the JavaScript one isn't page-breaking properly. One of the guys in the GitHub link above mentioned that this problem is

How to change dokku PHP memory_limit?

萝らか妹 提交于 2019-12-07 13:30:41
问题 I am hosting a WP blog on dokku, but there are stability issues, I suspect memory so I want to increase memory available to PHP, specifically, to set custom memory_limit value. I am running on dokku v0.5.6 , and using BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-php#102 To debug the PHP settings of my blog app I run dokku run blog php -ini | grep memory_limit #=> memory_limit => 128M => 128M I have followed the suggestions in Heroku PHP ini documentation Heroku PHP concurrency

Configuring a single page Create-React-App on Heroku

时间秒杀一切 提交于 2019-12-07 07:09: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":

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

跟風遠走 提交于 2019-12-07 06:28:57
问题 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

github php buildpack supporting DB2 and IBM Cloud php app

吃可爱长大的小学妹 提交于 2019-12-06 07:49:02
We have a PHP app on IBM Cloud connected to an instance of DB2 (also on IBM Cloud) that has been working flawlessly for 2 years Up until Sept 16th, we used the buildbpack with our PHP app (so that it could connect to DB2 via the db2_connect PHP function.) Now after the cflinuxfs3 upgrade that buildpack does not work and we are forced to use the " "php_buildpack" community buildpack already installed in Cloud Foundry". however, This new buildpack does not support DB2 connections. When trying to use this buildpack I run a log I find this error : "undefined function : db2_connect()". I've

Page-break-inside support in phantomjs on heroku

[亡魂溺海] 提交于 2019-12-06 04:21:10
I have a NodeJS app using PhantomJS to generate PDF files. My app is deployed to Heroku and I'm using this phantom build pack. Unfortunately this build pack does not support the page-break-inside: avoid CSS property. I did a research and found 2 hacks on this GitHub issue page. I've tried both of them, but unfortunately I can't use the CSS one, due to my page structure and the JavaScript one isn't page-breaking properly. One of the guys in the GitHub link above mentioned that this problem is fixed if I compile from source, but I have no idea how I can compile from source on Heroku App and is