heroku

Heroku Ruby version won't upgrade?

一笑奈何 提交于 2020-01-03 13:40:05
问题 I am struggling changing Ruby versions on Heroku. I use Ruby 2.0.0 with rails 4. My Gemfile has: source 'https://rubygems.org' ruby '2.0.0' ... The path in Heroku points to: $ heroku config -s | grep PATH PATH=bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin When I pushed my app, I could see: Fetching repository, done. Counting objects: 7, done. Delta compression using up to 4 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 431 bytes | 0 bytes/s, done

git push heroku master fails with parse error - which file?

牧云@^-^@ 提交于 2020-01-03 13:29:11
问题 I'm getting a parse error when I do a git push heroku master. Heroku tells me which line and column is causing the parse error, but not which file. How do I find out which file heroku is having trouble parsing? Please advise. ----- package.json ----- { "name": "mean", "version": "0.0.1", "private": true, "scripts": { "start": "node server.js" }, "dependencies": { "mongoose": "3.8.7", "express": "3.4.8", "jade": "*", "stylus": "*" }, "engines": { "node": "0.10.x", "npm": "1.4.x" } } -----

Caused by: java.sql.SQLException: JDBC4 Connection.isValid() method not supported

烂漫一生 提交于 2020-01-03 13:06:48
问题 My play-framework project is running well in my local but when I am trying to deploy it in heroku I am getting following error. 2015-07-05T06:24:10.456657+00:00 app[web.1]: at com.google.inject.Guice.createInjector(Guice.java:73) 2015-07-05T06:24:10.456817+00:00 app[web.1]: at play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:93) 2015-07-05T06:24:10.456702+00:00 app[web.1]: at com.google.inject.Guice.createInjector(Guice.java:62) 2015-07-05T06:24:10.456746+00

Meteor reset on Heroku

六月ゝ 毕业季﹏ 提交于 2020-01-03 10:42:12
问题 What is the best way to redeploy an alpha version on Heroku, and perform a meteor reset for the server mongo fixtures to be re-executed on the server? 回答1: Couldn't find a good solution. So I need to go in my heroku mongohq interface, and manually remove all collections, then restart heroku. 回答2: I resolved this with a custom method for any hosting(only debug, not in Production): in /server/reset.js Meteor.methods({ resetear: function() { Collection1.remove({}); Collection2.remove({}); //And

Meteor reset on Heroku

断了今生、忘了曾经 提交于 2020-01-03 10:41:33
问题 What is the best way to redeploy an alpha version on Heroku, and perform a meteor reset for the server mongo fixtures to be re-executed on the server? 回答1: Couldn't find a good solution. So I need to go in my heroku mongohq interface, and manually remove all collections, then restart heroku. 回答2: I resolved this with a custom method for any hosting(only debug, not in Production): in /server/reset.js Meteor.methods({ resetear: function() { Collection1.remove({}); Collection2.remove({}); //And

heroku + git submodule needs authentication

元气小坏坏 提交于 2020-01-03 09:45:03
问题 We are using gitolite to manage our repositories and one of our heroku project's have git submodules. Is there a way to get Heroku's public key for the authentication? Thanks, David 回答1: No, probably not. Instead, you can use HTTPS basic authentication when you create the submodule in your git repository, similar to deploying private gems to Heroku. Looks something like this: git submodule add https://username:password@github.com/username/repo.git 回答2: You can also commit a .ssh directory

Firebase Angular 4 Initialize based on node environment

梦想的初衷 提交于 2020-01-03 09:07:37
问题 I've built my Angular 4 project using the Angular CLI. I am deploying my app on Heroku, I've created heroku pipelines for dev and production environment. I have two firebase database dev and production and I want my angular 2 apps to connect to the firebase database based on heroku config variables I searched on google and found this answer helpful as @yoni-rabinovitch suggested to send an HTTP request on node server to check for the environment when the app initializes. I am a beginner in

Firebase Angular 4 Initialize based on node environment

非 Y 不嫁゛ 提交于 2020-01-03 09:07:04
问题 I've built my Angular 4 project using the Angular CLI. I am deploying my app on Heroku, I've created heroku pipelines for dev and production environment. I have two firebase database dev and production and I want my angular 2 apps to connect to the firebase database based on heroku config variables I searched on google and found this answer helpful as @yoni-rabinovitch suggested to send an HTTP request on node server to check for the environment when the app initializes. I am a beginner in

heroku error: Expected another key-value pair

你离开我真会死。 提交于 2020-01-03 08:52:57
问题 I am trying to deploy a nodejs app to heroku for the first time, following heroku's instructions here When I run git push heroku master , it starts compiling the app, but when it reaches 100% and I get this parse error: Expected another key-value pair at line 18, column 1 ! Push rejected, failed to compile Node.js app To git@heroku.com:agile-sands-7020.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'git@heroku.com:agile-sands-7020.git'

Heroku and Django with 405 error

寵の児 提交于 2020-01-03 08:13:52
问题 I am trying to move my django project from an apache setup over to heroku. At this point, everything seems to be working fine except for an issue I am having with using the PATCH Http Method (which I use in conjuction with django-tastypie). I have a piece of middleware that allows this method and it worked on the apache server I had before. Now all I get is a 405 (METHOD_NOT_ALLOWED) error. The common HTTP methods still work (GET, POST, DELETE, POST). I also have read that nginx doesn't