Menu
  • HOME
  • TAGS

Rails hash key/value created differently in local vs heroku

ruby-on-rails,postgresql,sqlite,heroku,hash

This looks to be a difference in how the pg Gem and underlying libpq driver handle typing vs. the SQLite driver, stemming from a deliberate decision by the driver developers to leave type conversion to the application framework and return everything as a string. By executing raw SQL and going...

heroku pgbackups:url command is no longer working?

ruby-on-rails,postgresql,ruby-on-rails-4,amazon-web-services,heroku

To download backup b004 use the following syntax: curl -o b004.dump `heroku pg:backups public-url b004` That will download the backup as b004.dump in the current directory....

Ubuntu 14.04 - An error occurred while installing pg (0.18.2), and Bundler cannot continue

ruby-on-rails,postgresql,ubuntu,heroku,sqlite3

Do you have PostgreSQL installed locally? If not, that might be the reason for that (having gem 'pg' is not enough to install it locally). You will have to run sudo apt-get install postgresql postgresql-contrib to install. You do not need it installed locally to push to Heroku though...as long...

Node.js on heroku, Cannot read property 'env' of undefined

javascript,node.js,heroku

It seems to work fine for me : Server(index.js) : var express = require('express'); var app = express(); app.set('port', (process.env.PORT || 5000)); app.use(express.static(__dirname + '/public')); app.get('/', function(request, response) { response.send('Hello World!'); }); app.listen(app.get('port'), function() { console.log('Node app is running on port', app.get('port')); }); Procfile : web: node index.js Demo :...

Seems unable to pull config vars from the environment (Heroku)

ruby-on-rails,ruby,ruby-on-rails-4,heroku,environment-variables

You are confusing the Heroku environment and the local development environment, which are different and unrelated. What the heroku config:set command does is exactly the same as putting the variables in front of the command, but it is for running the application when it is deployed to Heroku. But when...

How to change database_url on heroku?

postgresql,heroku

DATABASE_URL is what's currently storing your second app's connection to its provisioned DB, which Heroku is kindly preventing you from deleting because there are no other references to it. First, remove the second application's DB. Anything in it will be destroyed. heroku addons:destroy heroku-postgresql:<your DB tier> --app <your second app>...

Prevent Display Of Html Tags From User Input Sinatra?

ruby,heroku,sinatra

This is how I do it in my app, add the following to app.rb: helpers do include Rack::Utils alias_method :h, :escape_html end Then in your view you can do: <%= h user_input %> ...

How can I deploy a web application onto an existing domain Meteor javascript

javascript,heroku,deployment,meteor

You can use the meteor buildpack from https://github.com/jordansissel/heroku-buildpack-meteor Do this in your meteor app's directory on your local machine: Create a git commit git init git add . git commit -m "Initial commit" Create an instance: heroku create --buildpack https://github.com/jordansissel/heroku-buildpack-meteor.git Configure your app: heroku addons:create mongolab:sandbox heroku config:add MONGO_URL=<insert_value_of_MONGOLAB_URI_here> heroku...

Sinatra cannot find file that is clearly there

ruby,heroku,sinatra

The file is using upper case characters. Make sure the filename and the name in your code match in case. If the filename is really e.g. RUsure.erb then your code won’t work.

Brand new Luminus app giving Error: Could not find or load main class clojure.main

heroku,clojure,procfile,luminus

My best guess is that you need to build the project with the command lein uberjar. This sequence works: $ lein new luminus foobar Retrieving ... Generating a Luminus project. $ cd foobar $ lein uberjar Retrieving ... Compiling foobar.session Compiling foobar.layout Compiling foobar.handler Compiling foobar.routes.home Compiling foobar.core Compiling foobar.middleware...

Bonsai automatic indexing

mongodb,heroku,express,elasticsearch,bonsai-elasticsearch

Here is the answer by Bonsai support: - You could always set up a script with a curl command to index the MongoDB collections, then use cron to run the script at regular intervals. - You could also use an Elasticsearch client to index collections in some cases. So I...

Deploy to heroku without redirecting to localhost with passport callback

facebook,heroku,oauth,callback,passport-facebook

Did you add the callback URL to the app's settings? You have to add the site URL as that in the facebook developer app settings for it to allow facebook to make callbacks to any particular website. Should be under either basic settings on site URL or advanced settings on...

Receiving an error upon heroku login not sure why permission seems to be the issue

git,heroku,terminal

When you run heroku login command, it will write your Heroku API key to the .netrc file. If you first run sudo heroku login, then the .netrc file will be owned by the root account and not your user account. Unless you change permissions on the file using chmod a+x...

Ensuring a Gradle task is executed after another task

heroku,gradle

Basically task dependencies are configured with dependsOn and mustRunAfter, but it seems that what you need can be done with simple doLast: stage.doLast { project.file('bignibou-server/build/install').deleteDir() } ...

Database integrity errors when deploying Python(2.7)/Django(1.5) app on Heroku

python,django,heroku,django-south,heroku-postgres

The problem was solved via running heroku config:set ON_HEROKU=1. In my settings.py file, I used sqlite3 locally, but reverted to postgres when on Heroku. Setting ON_HEROKU to 1 before running syncdb, hence, solved the problem for me.

On Heroku, how can I schedule the postgres database for my Rails app to be periodically reset?

ruby-on-rails,postgresql,heroku

Following the example linked by Akshay, I was able to get this working, although not exactly as I planned. First, a clarification. To add the scheduler add-on on Heroku, you have to provide your credit card number. I'm still getting my bearings with the Heroku platform and am not ready...

Heroku pricing is per app or per account?

heroku,heroku-postgres

Heroku pricing is per-dyno, so essentially per-project (although a project can have more than 1 dyno). Database pricing is also per-project. Pricing is never per-account....

Rails4 - How to add from name to emails sent from my rails app?

ruby-on-rails,email,ruby-on-rails-4,heroku,sendgrid

Just use "My Website <[email protected]>" as the from value. (Yes, this is standard, and yes, ActionMailer will handle it as expected.)

How to handle user editable templates in a cloud stateless hosting environment?

php,git,symfony2,heroku

Instead of storing user-uploaded files locally, Heroku recommends putting them on an external service like Amazon S3. You may want to use an existing library for this, e.g. KnpGaufretteBundle: Easily use Gaufrette in your Symfony projects. Gaufrette itself is "a PHP5 library that provides a filesystem abstraction layer". Amazon S3...

how to run an node npm script in deployment hook in codeship

node.js,heroku,codeship

If you add a custom deploy script to Codeship after the Heroku deployment step, it should run after the app is running, so you'll have database access. You have access to the heroku toolkit, so you should be able to run: heroku run --app YOUR_APP_NAME -- ./node_modules/.bin/knex migrate:latest

Heroku deployment - RoR - “Detected manifest file, assuming assets were compiled locally”

ruby-on-rails,ruby,heroku,web-config

I had a similar problem before. All I did was add this to my config/application.rb config.assets.initialize_on_precompile = false...

PHP Curl Login not working on Heroku

php,curl,heroku

Looks like that page that I am trying to post to, have country restricted IP. Thank you anyway.

Heroku, schedule new Dyno sleeptime

heroku,server,dyno

No, this is not possible. Your app will automatically sleep when it doesn't get any requests for 30 minutes, and will be awaken if a request comes in. If you have exceeded your daily quota, the app will just not be awaken.

Heroku css static file name changed

css,django,heroku

Solved it. Put static files such as css in a separate folder such as 'mystatic' and list that folder in STATICFILES_DIRS, then run manage.py findstatic mycssfile.css to make sure it's found. Then when uploaded to Heroku collectstatic finds the file. All clear now.

Custom validation message (in model file) that includes a path not working

ruby-on-rails,ruby,ruby-on-rails-4,heroku,model

You can try this. I hope this will help. config/locales/en.yml en: activerecord: errors: messages: email: 'You can reset your password <a href="%{link}">here</a>.' In User Model. validates :email, uniqueness: { case_sensitive: false, message: I18n.t("activerecord.errors.messages.email", link: Rails.application.routes.url_helpers.new_password_reset_url) } ...

Django ImageField url slow when using Amazon s3

python,django,heroku,amazon-s3,boto

You can create a new field in your models, for example, image_url. class YourModel(...): image_url = models.CharField(...) # other fields When the image is uploaded/saved the first time, retrieve its URL and populate image_url field with this value. You'll need to save your model again, though. You can use this...

Not able to create staging instance on heroku [duplicate]

ruby-on-rails,git,heroku,sqlite3

In your Gemfile group :production do gem 'pg', '0.17.1' gem 'rails_12factor', '0.0.2’ end and also remove gem 'sqlite3' OR group :development, :test do gem 'sqlite3' end Because heroku can't install the sqlite3 gem. But you can tell bundler that it shouldn't be trying to except when developing. Then run bundle...

Transform query that works in SQLite into something that works in Postgres

ruby-on-rails,postgresql,heroku,sqlite3

PostgreSQL can't figure out how to order by your created_at. Suppose that you find 2 groups of (:sender_id, :receiver_id), for instance [1, 2] and [1, 3]. Now suppose that in the first group you have 2 messages, one from 1 day ago and one from 1 minute ago. And let's...

After deploying to heroky scripts and css not available

node.js,heroku

I resolved it. I think, I asked incorrect question. The problem was in missing bower command installation for dependencies when deploy.

How to create a MySQL schema when deploying with Heroku (Express Server)

mysql,heroku,express,cleardb

First, you should type heroku config to get your clearDB credentials. Then, you can ran this command from your terminal : mysql --host=us-cdbr-east.cleardb.com --user=xxxx --password=xxxx --reconnect heroku_xxxxxx < schema.sql...

Directive/Factory Not Working in Production

javascript,angularjs,flash,heroku

Renaming my file name and the internal function inside my directive solved the problem.

Database Migrations on Secondary Database on Heroku

ruby-on-rails,ruby,database,heroku,rake

Working with Heroku support, I was not able to get this to work with the current configuration. So in the end I decided to create a database for our staging app. Imported the latest dump file from production. And ran heroku run rake db:migrate against staging. I still got the...

Deploying a tar file from CI to heroku

heroku,playframework

You can use Heroku SBT plugin https://devcenter.heroku.com/articles/deploying-scala-and-play-applications-with-the-heroku-sbt-plugin . This may be a preferred approach for applications that take a long time to compile, or that need to be deployed from a Continuous Integration server such as Travis CI or Jenkins.

Devise emails are not being sent using sendgrid while other emails are being sent well

ruby-on-rails-4,heroku,devise,sendgrid

If you switch config.raise_delivery_errors to true then you'll be able to see if there's a specific problem and work backwards from there.

Issue with .gitignore/.slugignore syntax in order to exclude files

heroku,.slugignore

If the *.jar files are pulled in as dependencies then the patterns in the .slugignore file will not remove them. When you push your code to Heroku with git push heroku master the following happens: Checkout the most recent git commit (HEAD) Discard files in .slugignore Build project, including download...

Use Heroku binary instead of gem

ruby-on-rails,ruby,linux,heroku,installation

You can create a alias for heroku command put below code in .bash_profile file alias heroku="/usr/bin/heroku" .bash_profile so that it's loaded each time you open a terminal. note:- You will have to reload your current terminal to have it working simply use $. .bash_profile ...

Querying a Postgres View

postgresql,heroku,views

PostgreSQL is case-sensitive. So x and X are different You should use select * from "X"...

Can someone explain how Yii minimizing assets is supposed to work on Heroku?

php,heroku,yii,yii2

Ok I found this gem in Heroku docs. https://devcenter.heroku.com/articles/php-support#custom-compile-step. Turns out there is a way to specify a command in Composer's composer.json to run during the slug compilation. So I added "scripts": { "compile": "php yii asset assets.php config/assets-prod.php" and deployed and it generated the minified assets automatically! Whew! This...

What is the best way to run a long task on Heroku with Ruby On Rails?

ruby-on-rails,ruby,heroku,background-process

This is what I use for a job that I run every night: https://devcenter.heroku.com/articles/scheduler It works really well if your job is configured as a rake task. The guide at the link shows you how to configure everything and even addresses long-running jobs....

cannot rename name apps of cli in heroku

heroku,heroku-toolbelt

It says: run this command from an app folder. To do this you have to clone the app first. Then go into the app folder and run your command again. Or just specifiy the app via --app oldname: heroku apps:rename newname --app oldname ...

mongodb (mongolab) on heroku. 'LoopBack connector “mongodb” is not installed'

node.js,mongodb,heroku

You're missing the loopback-connector-mongodbfrom your dependencies Change your package.json to (remove my comment if copy/pasting!) { "name": "tk", "version": "1.0.0", "main": "server/server.js", "scripts": { "pretest": "jshint ." }, "dependencies": { "compression": "^1.0.3", "cors": "^2.5.2", "errorhandler": "^1.1.1", "loopback": "^2.14.0", "loopback-boot": "^2.6.5", "loopback-datasource-juggler": "^2.19.0", "loopback-connector-mongodb": "1.9.1", --note the addition of this line...

Can't Authenticate Auth Token When Pushed to Heroku

ruby-on-rails,authentication,heroku

When using the domain: :all, it looks for a tld (top-level domain) length of 1. This is fine when the domain is "localhost" on your local machine but breaks in the real world. I would recommend moving this code to an environment specific config file: config/environments/(development|production).rb Here you can use...

Want to set custom domain to my heroku app for godaddy domain name

heroku,dns

See https://devcenter.heroku.com/articles/custom-domains: $ heroku domains:add example.com Adding example.com to example... done ...

jhipster - can't run local dev profile after deploying app to Heroku

postgresql,heroku,intellij-idea,spring-boot,jhipster

It is because of this error and it has been fixed in the latest version.

Reversing a specific Rails Migration, can't remove

ruby-on-rails,ruby,heroku,migration

You're using a change method rather than an up, which you should only do for the subset of migrations that rails can reverse automatically. You should change the change method to up, and add a down method that can reverse the effects of the up method....

node.js createWriteStream doesn't create new file on Heroku

node.js,heroku,node.js-stream

In Heroku a dyno's local file storage is not persistent (besides the git repo files obviously), so if you write a local file and the dyno restarts the file will be gone, and if you start another dyno it won't be able to "see" the file. heroku run bash starts...

How to specify max memory for clojure heroku app?

heroku,clojure

Heroku is limiting your process memory, which is different from the memory allocated by the JVM. See for example: Why is my JVM process larger than max heap size?...

How do you deploy build artifacts to Heroku from Codeship?

heroku,continuous-deployment,codeship

Turns out that Codeship doesn't keep anything, in fact, different servers do the deployment than the testing. It seems that the best-practice here is to recreate the assets on the Heroku side with a custom buildpack, which, directly after the git pull, does the dependency installation and compiles the app...

Heroku download pg:backups how to

postgresql,heroku,heroku-postgres

You can use curl to download the backup using the public-url, e.g. curl -o appname.dump `heroku pg:backups public-url --app appname` Then you can use the Postgres pg_restore utility to restore the backup to your local database, e.g.: pg_restore --verbose --clean --no-acl --no-owner -h localhost -U appuser -d appname appname.dump (substitute...

Change dotenv configuration when deploying to Heroku/production?

ruby-on-rails,heroku

I am assuming you are referring to the file named .env as dotenv. Every variable in that file that you need on Heroku must be defined in Heroku config vars : https://devcenter.heroku.com/articles/config-vars The .env file is an easy way to replicate the Heroku config vars locally. That way your code...

CSS is not showing on heroku django app

django,heroku

Used WhiteNoise to collectstaticfiles. Thanks for helping. https://devcenter.heroku.com/articles/django-assets for documentation. ...

Ruby Sinatra/Postgres - can't connect to heroku database with PG.connect?

ruby,postgresql,heroku,sinatra

In your database.yml file you need to specify the correct host for the host entry. You are passing what is stored in DATABASE_URL (something like postgres://user:[email protected]:port/database) but it should just be the host. You will also need to specify a port if it isn't the default for PostgreSQL. Edit: should...

ERROR: permission denied for relation after Heroku pg_dump and import to development database

ruby-on-rails,database,postgresql,heroku,navicat

It seems like your db permissions have been mangled. Do you have PgAdmin III installed? http://www.pgadmin.org/download/ PgAdmin III will let you reset all db and user parameters. It will also allow you to see what is going on in your database(s) and tables so you can debug them. It's a...

Heroku RAM not increasing with upgraded dynos

ruby-on-rails,ruby,ruby-on-rails-3,memory,heroku

That log excert is from a one off dyno, a la heroku run console - this is entirely seperate to your web dynos which you may be runnning 2x dyno's for. You need to specifiy --size=2x in your heroku run command to have the one off process use 2x dynos.

Setting Asset Cache Expiration in Rails / Cloudfront / Heroku

ruby-on-rails,ruby,heroku,amazon-cloudfront

Set the response header To enable browser caching you must set the Cache-Control and the Expires response header. Debugging tip To see your existing cache settings, use your browser's debugger. For Chrome, while on any page in your app, open the debugger and look under: It's important to see what...

No module named wsgi

python,django,heroku,gunicorn,foreman

You've confused yourself by following an unnecessarily complicated structure. You don't need that outer meraki directory, and your Procfile and requirements.txt should be in the same directory as manage.py. Then you can remove the pythonpath parameter and all should be well.

Rake Task not working on Heroku

ruby-on-rails-4,heroku,rake-task

I needed to add :environment on my rake task task :my_task => :environment do # do work end i also add the followind line: config.dependency_loading = true on production.rb file...

Redirect Loop on Heroku with Rails 4 App, but not on local machine

ruby-on-rails,ruby-on-rails-4,heroku,dns

I discovered the answer. I am on Cloudflare's network. Turns out that if on their "Crypto" panel, if the SSL is set to "flexible" then you will get the redirect loop error. Had to set it to "Full".

After push the Rails app to Heroku, blank page

ruby-on-rails,ruby,git,postgresql,heroku

Your error logs yield: Missing `secret_token` and `secret_key_base` for 'production' environment, set these values in `config/secrets.yml` (RuntimeError) You can resolve this issue by adding config/secrets.yml to version control, and then deploying again (explained in detail here: How to solve error "Missing `secret_key_base` for 'production' environment" on Heroku (Rails 4.1))...

How to setup FTP static ip with QuotaGuard static?

node.js,heroku,ftp,static-ip-address

You can use a fork of the node-ftp package to do this but it isn't in NPM so requires a bit of manual install. Clone the repo locally: git clone [email protected]:choonyme/node-socksftp.git Copy the socksftp directory in to your project directory (e.g. cp -r node-socksftp/socksftp ./node_modules/ export your QuotaGuard Static connection...

Rails + Angular + sqlite3 Deployment

ruby-on-rails,ruby,angularjs,heroku,sqlite3

If you are using Rails to serve the API to the Angular-powered frontend in your app, there shouldn't be a problem with Heroku hosting your app. Here is a live example of an Angular/Rails app being hosted on Heroku. However, Heroku does not support SQLite. While easy to use, SQLite...

rails db:migrate fails rake aborted ActiveRecord::NoDatabaseError

ruby-on-rails,postgresql,heroku

Postgresql comes preinstalled on Cloud9. You simply can't run bundle exec rake db:migrate though, because you have to set it up and connect to it first. Refer to the documentation here https://docs.c9.io/v1.0/docs/setting-up-postgresql on how to set it up. Also, you dont need to install postgresql to be able to deploy...

Trying to push Rails 4.2.1 app to Heroku sqlite error

ruby-on-rails,heroku,gem

It is very common to run with SQLite in development and test and a different database like PostgreSQL in production. Rails makes it easy to do this. In your Gemfile, you can use groups to specify which gems should be installed in each environment. So, in this scenario, your gemfile...

How to download files from git repository?

git,heroku

Installing git in a new dir should be the best option: If your repo is already initiated, check your remotes: git remote --v $ git remote --v heroku ssh://xxxxxxxx.xxx:repo.git (fetch) heroku ssh://xxxxxxxx.xxx:repo.git (push) Check the list you have there. The first parameter, is the remote name, then you should write...

Rails app Time to first byte very high using heroku

ruby-on-rails,heroku,pageload

This is because Heroku will lazily spin up your dyno which essentially means that the first request will take ~10 seconds. If you leave your app idle for a little while Heroku will spin down your dyno. See article for full explanation https://devcenter.heroku.com/articles/dynos#dyno-sleeping...

Rails + Heroku + Cloudflare - Eliminate www as a subdomain

ruby-on-rails,heroku,cloudflare

I had to remove the A name record in CloudFlare and replace it with a CNAME record. I also added 2 additional CNAME records: one wildcard and one for www.

Heroku PostgreSQL database connection pooling in Ruby for Rack with Puma

ruby,postgresql,heroku,connection-pooling,rack

Puma is threaded so you need a thread safe pool of connections to PostgreSQL, otherwise concurrent requests will all use the same connection concurrently, which is unexpected. Please have a look to the connection_pool gem. It should help....

sqlite issue with heroku

ruby-on-rails,sqlite,heroku

Specified 'sqlite3' for database adapter, but the gem is not loaded. Add gem 'sqlite3' to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). Add gem 'sqlite3', group: :development to your Gemfile and do bundle install. And also you should be putting pg gem in...

Can we use smtp with heroku without the SendGrid add-on?

ruby-on-rails,ruby,heroku,sendgrid,add-on

Yes you can simply sign up for a SendGrid account directly and then use the SMTP details. It would look like this: config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => "smtp.sendgrid.net", :port => 587, :domain => 'yourdomain.com', :user_name => ENV['SENDGRID_USERNAME'], :password => ENV['SENDGRID_PASSWORD'], :authentication => 'plain', :enable_starttls_auto => true }...

Rails, DNSimple, Heroku and SSL - do I need a certificate?

ruby-on-rails,ssl,heroku,dnsimple

I just went through this same scenario. The certificate you see in your herokuapp is the wildcard certificate issued for *.herokuapp.com. If you want to secure a custom domain name http://my-app-name.com, you would need to purchase and install your own wildcard certificate via DNSimple. ...

Postgres: Combining multiple COPY TO outputs to a postgres-importable file

postgresql,heroku,import,copy,export

Building on my comment about to/from stdout/stdin, and answering the actual question about including multiple tables in one file; you can construct the output file to interleave copy ... from stdin with actual data and load it via psql. For example, psql will support input files that look like this:...

Rails “superclass mismatch for class (TypeError)”. A well documented error, but I need some tailored advice

ruby-on-rails,inheritance,heroku

You're trying to redefine the Theme and the Setting model. In your app/models/item.rb you define them as inherited from Item class and in the app/models/theme.rb and app/models/setting.rb you define them to inherit from ActiveRecord::Base directly. You can see this error only in the heroku (probably production) environment because in dev...

Implementing PeerJS Server with multiple dynos on Heroku

node.js,heroku,scalability,peerjs

There does not appear to be any currently existing signaling servers that exist using node and redis.

Heroku Websockets with Java ECONNREFUSED (Connection refused)

java,heroku,java-server,java-websocket

I am answering my own question to share how I've managed to connect to Java websocket server on Heroku. Create your web socket server using Java , the implementation is up to you , you can use javax or Jetty websockets or TooTallNate-Java-Websockets , I've used Jetty. Here is my...

Bootstrap 3 Ruby app not mobile responsive

css,ruby-on-rails,twitter-bootstrap,heroku

It's difficult to say for sure using just the information in the question you posted, but my guess is you forgot to set the viewport. Quote: To ensure proper rendering and touch zooming, add the viewport meta tag to your <head>. <meta name="viewport" content="width=device-width, initial-scale=1"> ...

Heroku and Precompiled Assets

ruby-on-rails,ruby,heroku,assets

Compile assets locally To solve this chicken and egg problem with the database in deploy, do not invoke precompile in production, precompile on development machine for production prior to push. With a functional code base pushed, you can run "$heroku db:xxx" commands on Heroku. Turn off precompile assets in production.rb:...

How log an HTTP JSON request in Loopback app deployed on Heroku?

node.js,logging,heroku,express,loopbackjs

As loopback extends express, we can use body parser module. So first install "body-parser" Then add this code in serveur.js var loopback = require('loopback'); var boot = require('loopback-boot'); var app = module.exports = loopback(); var bodyParser = require('body-parser'); // parse application/x-www-form-urlencoded app.use(bodyParser.urlencoded({ extended: false })) // parse application/json app.use(bodyParser.json()) var...

Cannot GET/ Error In Node js With Heroku

node.js,heroku

I found the way out,this is my new code: var express = require('express'); var app = express(); app.set('port', (process.env.PORT || 5000)); app.use(express.static(__dirname + '/public')); app.get('/', function(request, response) { response.send('Hello World!'); }); var bodyParser = require('body-parser'); var WEBHOOK_SECRET = "62DZWMCCFFHTTQ44CG3WUQ94CTT7GAAN"; app.post('/telerivet/webhook', bodyParser.urlencoded({ extended: true }),function(req, res) { var secret = req.body.secret;...

Heroku src refspec master does not match any

ruby-on-rails,heroku

That means there's no master branch. Rename your default branch to master or check your branch name and it should work.

How to get useful errors to debug rails email on staging/production server?

ruby-on-rails,heroku,actionmailer

Forcing the environment setting with Apache's include config file to RailsEnv staging enabled helpful errors. ...

Heroku rake db:migrate failing - uninitialized constant

ruby-on-rails,ruby,heroku

Your migration file named should correspond to AddWeightToExercises. It should be accordingly xxxxxxxx_add_weight_to_exercises, where xxxxxxx corresponds to a particular timestamp.

Remove Heroku setting from Hubot?

heroku,hubot

Try this. cd <your-hubot-project-dir> npm uninstall hubot-heroku-keepalive --save Then find and remove the line that contains "hubot-heroku-keepalive" from file "external-scripts.json". Run "bin/hubot" again....

Heroku deploy of Gulp + Compass is not working at boilerplate stage

heroku,gulp,compass

Your ruby/compass installation on Heroku must be out of date. I had to update mine to 2.2.0 for compass to work but i am using a custom buildpack as well for Grunt-NodeJS-Compass https://github.com/devakone/heroku-buildpack-nodejs-grunt-compass You can take a look at the https://github.com/devakone/heroku-buildpack-nodejs-grunt-compass/blob/master/bin/compile file line 153 export GEM_HOME=$build_dir/.gem/ruby/2.2.0 Make sure your GEM_HOME...

Unable to send email using Action Mailer in production

ruby-on-rails,heroku,gmail,actionmailer,mandrill

Neo's solution solved my problem. All I did was set the environment variables on Heroku. $ heroku config:set HEROKU_USERNAME = ... and all the other variables and that fixed it....

Why does my viewport look different when I deploy to heroku?

html5,mobile,heroku,responsive-design,viewport

A few details you could check. (1) Rewrite the head of your page as below: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <title>Notify</title> <link rel="stylesheet" type="text/css" href="./app.css"> <link rel="stylesheet" type="text/css" href="./bootstrap.css"> </head> <body> </body> </html> Note that I've declared the doctype, charset,...

Is there a way to put local_settings.py to Heroku bypassing Git?

python,django,git,heroku

The way to have specific settings on Heroku is to use environment variables, which you can set via the web interface or heroku set, and use them on your settings file to override the defaults like this: MY_SETTING = os.environ.get('MY_ENV_VAR', 'my_default') ...

Authenticating Heroku gem from rake task

ruby-on-rails,heroku,rake

For non-interactive login, you need to use an API key, which Heroku will read from the HEROKU_API_KEY environment variable. You can fetch the key for your account from a logged-in CLI using heroku auth:token. There's no way to avoid authentication just because you're running inside Heroku already. That would have...

Application Error on new Heroku app

node.js,osx,heroku

Same thing happened with me. As far as I can remember, the reason for this is the port you used in the application. Heroku will not run your app on port 8080 or 3000, instead it will be some random port. Use this code to fix the problem. var port...

Download partial database from heroku

ruby-on-rails,database,postgresql,heroku,partial

In addition to Steve's quite correct answer, you also have the option of connecting using psql to the DATABASE_URL and using \copy, e.g. $ psql "$(heroku config:get DATABASE_URL)" mydb=> \copy mytable TO 'mytable.csv' WITH (FORMAT CSV, HEADER) mydb=> \copy (SELECT col1, col2 FROM mytable2 WHERE ...) TO 'mytable2_partial.csv' WITH (FORMAT...

Faye Ruby Server Side Publish on Heroku - EventMachine buffer overflow detected

heroku,websocket,out-of-memory,publish-subscribe,faye

Ok, I realised the mistake. I was creating the client outside the EM.run block. Once i moved the initialization inside the EM.run block, everything was working fine....

Are files uploaded to heroku immediatly deleted?

ruby-on-rails,heroku

heroku is a read only file system. so actually you don't even write the files but just keep them in memory while in one thread. if you want to use some free storage system i recommend google drive. you'll need to do some searching of how to use that since...