heroku

Error connecting to heroku postgres db in nodejs

时光总嘲笑我的痴心妄想 提交于 2020-01-14 12:53:09
问题 It seems after my database was upgraded to 10.2 I'm unable to connect. I'm using the pg 7.4.2 npm package. To be clear, I have been connecting without issue for 6 months using the same connection string which had ?ssl=true appended to it. I get this error connecting via Pool or Client. AssertionError [ERR_ASSERTION]: false == true at Object.exports.connect (_tls_wrap.js:1099:3) at Socket.<anonymous> (/home/e/express/testpg/node_modules/pg/lib/connection.js:94:23) at Object.onceWrapper (events

foreman start with a manual path

萝らか妹 提交于 2020-01-14 12:15:31
问题 I am trying to run foreman on heroku. This is a common error, however, i still didnt find a solution. It is clearly missing a path here: "/c/ Program Files /ruby-1.9.2/bin/foreman: "C:/ Program : bad interpreter: no such file or directory My question is: is there a way to avoid this error by manually adding the whole path? Or where should I look to change it? Thank you. 回答1: This is a known issue with running foreman in Git bash shell on windows enviroment. (See github issue) The only current

foreman start with a manual path

杀马特。学长 韩版系。学妹 提交于 2020-01-14 12:07:11
问题 I am trying to run foreman on heroku. This is a common error, however, i still didnt find a solution. It is clearly missing a path here: "/c/ Program Files /ruby-1.9.2/bin/foreman: "C:/ Program : bad interpreter: no such file or directory My question is: is there a way to avoid this error by manually adding the whole path? Or where should I look to change it? Thank you. 回答1: This is a known issue with running foreman in Git bash shell on windows enviroment. (See github issue) The only current

Getting Started with Python on Heroku - pg_config executable not found

假装没事ソ 提交于 2020-01-14 10:43:36
问题 I have been following the documentation until I got to the point of installing the requirements.txt file. It always fails when trying to install line 6 "psycopg2==2.5.3". Here is the message - Downloading/unpacking psycopg2==2.5.3 (from -r requirements.txt (line 6)) Downloading psycopg2-2.5.3.tar.gz (690kB): 690kB downloaded Running setup.py (path:/Users/pimpc/Sites/python/herokudemo/python-getting-started/venv/build/psycopg2/setup.py) egg_info for package psycopg2 Error: pg_config executable

How can I parse a URL using a proxy with Rails?

别说谁变了你拦得住时间么 提交于 2020-01-14 10:30:12
问题 My app has the following controller action: def test #get URL url = "http://www.coteur.com/surebet.php" doc = Nokogiri::HTML(open(url)) @show = doc.at_css("title").text @game_data = Array.new doc.css('tbody').each do |tr| tr.css("tr").each do |f| @game_data.push(f.css("td").text) end end end And render the following view: <%= @show%> <div class="bs-example" data-example-id="hoverable-table"> <table class="table table-hover"> <tbody> <% if @game_data.empty? %> <tr> <td>Nope</td> </tr> <%else%>

'site' module not found when deploying to Heroku

早过忘川 提交于 2020-01-14 10:16:10
问题 I'm trying to deploy a django app to Heroku, but I keep getting the error ImportError: no module named site I'm using a custom buildpack from https://github.com/jiaaro/heroku-buildpack-django This doesn't seem to be the problem and neither does anything with pip or my virtualenv setup I think the error is originating in my main urls.py file. This file is set up just like below: from django.conf.urls import patterns, include, url from django.contrib import admin from CentsLess import settings

python-ldap failed to install in Heroku

折月煮酒 提交于 2020-01-14 09:52:10
问题 It seems like Heroku does not support python-ldap. The pip install with "python-ldap==2.3.13" in the requirements.txt file failed with following error in Heroku: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_LIBLDAP_R -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=2.3.13 -IModules -I/usr/local/openldap-2.3/include -I/usr/include/sasl -I/usr/local/include/python2.7 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-2.7/Modules/LDAPObject.o

How to get the EventMachine gem to compile on OSX Lion 10.8.2 with Xcode 4.5.1

白昼怎懂夜的黑 提交于 2020-01-14 09:52:09
问题 I looked everywhere I can find but can't seem to find a solution to this. I'm using Xcode 4.5.1 on Lion 10.8.2, and am trying to run bundle for a Rails project and it keeps jamming up on this. I'm using the Thin gem for Heroku. Bolanos@Jeremys-Mac-mini ⦿-1.9.3 fishfarm $ sudo gem install eventmachine Password: Building native extensions. This could take a while... ERROR: Error installing eventmachine: ERROR: Failed to build gem native extension. /Users/Bolanos/.rvm/rubies/ruby-1.9.3-p194/bin

Maximum number of domains that can be assigned to one Heroku app?

天大地大妈咪最大 提交于 2020-01-14 09:37:10
问题 I am discussing a project with a client who wants his users to access the app via their own domain name if they so choose… Is there a limit on the number of custom domains that can be assigned to one Heroku application? 回答1: There's no limit to the number of domains you can add on an app, from the docs: You can add any number of domains to a single app 回答2: The limit is now 10,000 custom domains per-app, according to Heroku's docs. 来源: https://stackoverflow.com/questions/15773920/maximum

How to have package.json not at top level of heroku app

♀尐吖头ヾ 提交于 2020-01-14 08:55:09
问题 I have this app that deploys to heroku: https://github.com/justin808/react-webpack-rails-tutorial http://react-webpack-rails-tutorial.herokuapp.com/ The technique is described here: http://www.railsonmaui.com/blog/2014/10/02/integrating-webpack-and-the-es6-transpiler-into-an-existing-rails-project/ Currently, package.json is at the root level of the project. How do move the /package.json and /node_modules to be inside of the /webpack directory? I.e., how do I tell the node buildpack where to