heroku

Unable to fetch tables information when running heroku db:pull

浪子不回头ぞ 提交于 2020-01-13 03:12:11
问题 I have an application that uses postgres in development and production. I recently pushed to heroku and everything was working fine. I was able to pull the database from heroku and push back up with no problem. Today however, I tried to pull the DB down from heroku and I received this error heroku db:pull Loaded Taps v0.3.24 Auto-detected local database: postgres://postgres:a@127.0.0.1/app_development?encoding=utf8 Warning: Data in the database 'postgres://postgres:a@127.0.0.1/app_development

starting multiple workers in Procfile (development environment vs Heroku)

霸气de小男生 提交于 2020-01-13 03:03:39
问题 I have a simple Procfile that reads: web: bundle exec rails server thin -p $PORT worker: bundle exec rake jobs:work On Heroku, this will launch N worker tasks, where N is whatever I've scaled it to be. On my development system, $ foreman start will only launch one worker task. If I want to launch three workers, I need a Procfile that looks like: web: bundle exec rails server thin -p $PORT worker: bundle exec rake jobs:work worker: bundle exec rake jobs:work worker: bundle exec rake jobs:work

starting multiple workers in Procfile (development environment vs Heroku)

半世苍凉 提交于 2020-01-13 03:03:37
问题 I have a simple Procfile that reads: web: bundle exec rails server thin -p $PORT worker: bundle exec rake jobs:work On Heroku, this will launch N worker tasks, where N is whatever I've scaled it to be. On my development system, $ foreman start will only launch one worker task. If I want to launch three workers, I need a Procfile that looks like: web: bundle exec rails server thin -p $PORT worker: bundle exec rake jobs:work worker: bundle exec rake jobs:work worker: bundle exec rake jobs:work

exception_notification gem raises ActionView::Template::Error (code converter not found (UTF-8 to UTF-16)) only on Heroku production mode

ⅰ亾dé卋堺 提交于 2020-01-12 11:50:53
问题 I create rails app deployed on Heroku. also, exception_notification gem enabled. when it is on development setup ActionMailer to Gmail, everything is fine and sends a notification from Gmail address. but when it comes to production environment on Heroku, I get following error when server trying to send a email. ActionView::Template::Error (code converter not found (UTF-8 to UTF-16)) Could anyone tell me what's happening here? 回答1: The issue was raised on the main repository (see here), but so

Connection to Mysql from NodeJS on Heroku server

一曲冷凌霜 提交于 2020-01-12 09:29:06
问题 ANy idea how can I connect from NodeJs to the Mysql ClearDB on Heroku? I was able to connect to the ClearDB Mysql runing on Heroku from Navicat, I even created a table called t_users. But I'm having problems connecting from NodeJs from Heroku. This is my code, it is very simple: everything works find until it tries to connect to MySQL web.js: var express = require("express"); var app = express(); app.use(express.logger()); var mysql = require('mysql'); var connection = mysql.createConnection(

How to configure StrongLoop LoopBack MongoDB datasource for deployment to Heroku

强颜欢笑 提交于 2020-01-12 07:37:07
问题 I'm using LoopBack ver. 1.6 and have a local mongoDB server running for development using he following datasource configuration: "mongodb": { "defaultForType": "mongodb", "connector": "loopback-connector-mongodb", "database": "xxxdbname", "host": "localhost", "port": "27017" }, Now I want to deploy to Heroku but I don't know how to configure the datasource to point at the MongoLab db since it has a dynamically generated connection string: from the Heroku dox: var mongo = require('mongodb');

Is redis on Heroku possible without an addon?

谁说我不能喝 提交于 2020-01-12 07:32:25
问题 I'm looking into using Heroku for a PHP app that uses Redis. I've seen the various addons for redis. With Redis To Go, for example, you can use an environment variable $_ENV['REDISTOGO_URL'] in your PHP code, as the URL of the Redis Server. Most of these add ons have their own pricing schemes which I'd like to avoid. I'm a little confused about how heroku works. Is there a way that I can just install Redis on my own Dynos without the addons? Like for example, have one worker dyno that acts as

Trouble connecting to postgresql DB on Heroku with Korma (Clojure)

孤人 提交于 2020-01-12 07:28:14
问题 I am parsing the postgresql uri in my config settings on Heroku. But I cannot seem to get it working. Any help would be greatly appreciated, I'm probably missing something straight forward. Here is the code used. (def dev-db-info {:db "dbname" :user "username"}) (defn parse-db-uri [uri] (drop 1 (split uri #"://|:|@|/"))) (defn create-map-from-uri [uri] (let [parsed (parse-db-uri uri)] (zipmap [:user :password :host :port :db] parsed))) (defn db-info [] (if production? (create-map-from-uri

How can I tell unicorn to understand Heroku's signals?

ぃ、小莉子 提交于 2020-01-12 07:26:07
问题 Perhaps you've seen this... 2012-03-07T15:36:25+00:00 heroku[web.1]: Stopping process with SIGTERM 2012-03-07T15:36:36+00:00 heroku[web.1]: Stopping process with SIGKILL 2012-03-07T15:36:36+00:00 heroku[web.1]: Error R12 (Exit timeout) -> Process failed to exit within 10 seconds of SIGTERM 2012-03-07T15:36:38+00:00 heroku[web.1]: Process exited with status 137 This is a well known problem when running unicorn on heroku... heroku uses SIGTERM for graceful shutdown unicorn uses SIGTERM for

Error: Cannot resolve module 'babel-loader'

只愿长相守 提交于 2020-01-12 06:25:31
问题 I'm trying to run webpack on my postinstall script in my package.json when I push to heroku but I am getting the following error. ERROR in Entry module not found: Error: Cannot resolve module 'babel-loader' in /tmp/build_6cb4b10367d9382367ab72f2e2f33118 When I run the command locally I get no issues. Below is my webpack config - i have tried using resolveLoader to fix the resolving issue but to no avail? var path = require('path'); var webpack = require('webpack'); var config = { entry: path