heroku

How do you do GIS queries on Heroku using the shared database?

空扰寡人 提交于 2020-01-01 03:21:21
问题 I have a table of geocoded locations with latitude and longitude. I'd like my database query to return a filtered list of them, ordered by distance from a fixed point. There are a few options which I've explored: Postgresql's earthdistance contrib is probably closest to my needs; however, I've found no indication that this is installed on heroku's db server. PostGIS is the most often prescribed solution for GIS, but heroku does not have it installed, and heroku support confirmed that they

Git: How to ignore a file from one repo and add it to another?

帅比萌擦擦* 提交于 2020-01-01 03:11:28
问题 I have a Ruby on Rails application that I am trying to host on Heroku. I would also like to use a GitHub public (free) repository to track changes. I need to check-in a file containing passwords to the Heroku remote repo, but ignore the file so I don't check it in to GitHub. Is there a way I can add the file to one repo, and ignore it from another? Update: I figured out how to solve my immediate problem of storing passwords in Heroku by using Heroku Config vars. However, I'm still interested

Git: How to ignore a file from one repo and add it to another?

巧了我就是萌 提交于 2020-01-01 03:11:11
问题 I have a Ruby on Rails application that I am trying to host on Heroku. I would also like to use a GitHub public (free) repository to track changes. I need to check-in a file containing passwords to the Heroku remote repo, but ignore the file so I don't check it in to GitHub. Is there a way I can add the file to one repo, and ignore it from another? Update: I figured out how to solve my immediate problem of storing passwords in Heroku by using Heroku Config vars. However, I'm still interested

Why I am getting Could not find multi_json-1.3.1 in any of the sources?

荒凉一梦 提交于 2020-01-01 02:45:09
问题 I have a simple Rails application I want to deploy to Heroku. When I run the below command git push heroku master The below error message is displayed. Could not find multi_json-1.3.1 in any of the sources ! ! Failed to install gems via Bundler. ! ! Heroku push rejected, failed to compile Ruby/rails app Here is my Gemfile gem 'rails', '3.2.3' gem 'pg' group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' gem 'therubyracer', :platform => :ruby gem 'uglifier', '>= 1.0.3'

Gandi.net and Heroku Domain Routing

十年热恋 提交于 2020-01-01 02:44:32
问题 My .io domain works for www.domain.io, but not for the domain.io version. Below are each of the versions and revisions I have tried with ample time between each. I al @ 10800 IN A 174.129.212.2 @ 10800 IN A 75.101.145.87 @ 10800 IN A 75.101.163.44 blog 10800 IN CNAME blogs.vip.gandi.net. imap 10800 IN CNAME access.mail.gandi.net. pop 10800 IN CNAME access.mail.gandi.net. smtp 10800 IN CNAME relay.mail.gandi.net. webmail 10800 IN CNAME webmail.gandi.net. www 10800 IN CNAME domain.herokuapp.com

Reduce Heroku Compiled Slug Size

半世苍凉 提交于 2020-01-01 02:40:11
问题 I've just updated rails to v2.3.6 on my app under a bamboo-ree-1.8.7 stack and the compiled slug size has grown up to 40.5Mb! Previous to that last git push, the slug size was about 20Mb and was using rails v2.3.5. Is it because my slug has both of rails versions installed? Probably I'm missing something but I haven't added any special code/files into my app as to increase the slug size by ~20Mb. Can you point me on how can I reduce the slug size? Any help will be greatly appreciated. Thank

Ruby/RVM with @global gem - bundle run fails with `require': cannot load such file — bundler (LoadError)

本小妞迷上赌 提交于 2020-01-01 02:25:06
问题 I study linux for 1 month. While I tried to make all steps from Migrating from MySQL to Postgres on Heroku I've got an error I could not handle. When I try to install the mysqltopostgres gem from source: $ git clone https://github.com/maxlapshin/mysql2postgres.git $ cd mysql2postgres $ bundle install $ gem build mysqltopostgres.gemspec $ sudo gem install mysqltopostgres-0.2.20.gem I have an error on $ bundle install : /home/franchb/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/

Where are Heroku apps hosted exactly?

北慕城南 提交于 2020-01-01 01:57:12
问题 Through https://devcenter.heroku.com/articles/regions I see that for heroku common runtime spaces heroku has two available regions: Europe and United States. But I couldn't find exactly in any official documentation which region exactly of United States heroku hosts the application. For example I want to know if it hosts on east, west, north, south. Thanks 回答1: The Heroku US region is AWS's us-east-1. EU is eu-west-1. That makes the US region located in North Virginia, and EU in Ireland. 回答2:

Heroku rejecting push in mature application (pre-receive hook declined)

怎甘沉沦 提交于 2020-01-01 01:09:36
问题 I'm getting FAILED: http://devcenter.heroku.com/articles/bundler ! Heroku push rejected, failed to install gems via Bundler To git@heroku.com:... ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to ………….. (see bottom for full listing) This is an application that is currently working on heroku, but heroku won't allow git push heroku master to update the code. However, if I clone the code to a new folder and do a heroku create to create a new app

Removing duplicate db migrations from git repository

删除回忆录丶 提交于 2019-12-31 22:28:32
问题 I'm trying to deploy a rails app to Heroku and I'm running into some basic git problems. I'm new to this all -- rails, git, heroku -- so I'm afraid I'm getting lost on what's probably a fairly basic concept. I've pushed the app to Heroku, but when I'm migrating the db ($ heroku rake db:migrate), I keep getting the following error: rake aborted! Multiple migrations have the name CreateFavorites Checking my github repository, and sure enough, there are two migrations: 20101007030431_create