heroku

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

心已入冬 提交于 2020-01-01 06:39:07
问题 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.

Getting NoMethodError (undefined method `name' for nil:NilClass) when creating a new model in Heroku console

早过忘川 提交于 2020-01-01 05:31:11
问题 I just did a push to Heroku and tried doing some testing by adding a model through rails_admin. When I did that I got a generic error page. I went into the logs and noticed this message: NoMethodError (undefined method `name' for nil:NilClass) I then opened heroku console and tried adding the model manually and received the same message when trying to save. NoMethodError: undefined method `name' for nil:NilClass Here is the model: class Board < ActiveRecord::Base attr_accessible :name,

ReactJS APP in Heroku “Invalid Host header” HOST configuration?

梦想的初衷 提交于 2020-01-01 05:26:04
问题 I am trying to put my React app on the Heroku. The whole project include one API (express) and one client (ReactJS). I have put my API on heroku. But when I put my client on Heroku, it shows build succeeded. But when I open it, it shows Invalid Host header . I google this problem and many people tell me to configure the HOST. But they are using webpack. I build this with create-react-app and I run it by npm start . I want to know how to solve this problem in most easy way. Thanks. 回答1: If for

Heroku doesn't recognize my Laravel app as PHP app, and does not do composer install

本小妞迷上赌 提交于 2020-01-01 05:16:10
问题 I'm trying to publish my Laravel app on Heroku. I have excluded the composer.lock file from .gitignore, and created a Procfile containing web: vendor/bin/heroku-php-apache2 public I created my app with heroku create myapp; git push heroku master; Then I get the following output: git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags heroku master:master Pushing to https://git.heroku.com/myapp.git POST git-receive-pack (1914 bytes) remote:

Application Error after deploying Meteor 1.0 app on heroku

蹲街弑〆低调 提交于 2020-01-01 04:55:08
问题 I'm trying to deploy a meteor.js app (v 1.0) on heroku using the following buildpack: https://github.com/AdmitHub/meteor-buildpack-horse and following along this tutorial: http://www.growthux.com/ux-html-css-js-growth-hack/installing-meteor-on-heroku My app is more like a static website, i'm using the database to build a simple back office: - storing the admin user and image paths which are then dynamically rendered in my templates. After having created my app on Heroku, set ROOT_URL variable

Git pull error: “fatal: Couldn't find remote ref master” from Heroku

对着背影说爱祢 提交于 2020-01-01 04:37:15
问题 I upload my application on heroku. But I face some problems. What the problem: fatal: 'priroda' does not appear to be a git repository? ~/priroda$ git pull fatal: 'priroda' does not appear to be a git repository fatal: The remote end hung up unexpectedly ~/priroda$ git remote -v heroku git@heroku.com:secure-anchorage-3129.git (fetch) heroku git@heroku.com:secure-anchorage-3129.git (push) origin priroda (fetch) origin priroda (push) When I add this command: git push heroku master I receive

Node.js, PostgreSQL error: no pg_hba.conf entry for host

孤人 提交于 2020-01-01 03:56:19
问题 I am following this article ((http://nodeexamples.com/2012/09/21/connecting-to-a-postgresql-database-from-node-js-using-the-pg-module/). I have already deployed my app to heroku and currently using express, node.js, to try and connect to a PostgresSQL database in Heroku that I just installed. I get to the very end of the article and I use the command node myfile.js I get this error error: no pg_hba.conf entry for host "...", user "...", database "...", ... How do I go about creating one and

How to copy rails app using git and deployed to heroku

青春壹個敷衍的年華 提交于 2020-01-01 03:36:06
问题 I'm new to programing and rails and I'd like to create a copy of a rails app I'm working with to harmlessly try out some things. Is there an easy way to make that happen? 回答1: Yes you can. These commands weren't obvious to a newbie like me and may help someone else... First, depending on what you plan on calling your new deployed app, find a name that is currently available on heroku. From root of old and to be created new rails app: $ cp -R old_directory new_directory $ cd new_directory $ rm

How to use your own mysql database server with heroku?

浪尽此生 提交于 2020-01-01 03:27:13
问题 I want to use mysql database which is hosted on my own server. I've changed DATABASE_URL and SHARED_DATABASE_URL config vars to point to my server, but it's still trying to connect to heroku's amazonaws servers. How do I fix that? 回答1: According to the Heroku documentation, changing DATABASE_URL is the correct way to go. If you would like to have your rails application connect to a non-Heroku provided database, you can take advantage of this same mechanism. Simply set your DATABASE_URL config

Webhooks failing with “Invalid Scopes: pages_messaging_subscriptions” [duplicate]

…衆ロ難τιáo~ 提交于 2020-01-01 03:22:09
问题 This question already has answers here : Facebook Messenger App Invalid Scope - permission: pages_messaging_subscriptions (3 answers) Closed 3 years ago . I had a submitted and approved Facebook messenger bot working. But I just got a developer update just now saying "Your Webhooks subscription for callback URL https://BOTNAME.herokuapp.com/ has not been accepting updates for at least 16 minutes. Please verify that your callback server is functioning." I do see that my callback server and