heroku

How to run command line python tool in Heroku

倖福魔咒の 提交于 2020-01-06 01:06:40
问题 I am new to Heroku platform. My requirement is to run a python command line tool from Heroku. I am not sure if this can be done directly as applications over there are the web applications with other mandatory files such as procfile etc. The approach I am thinking to take is to create a web app that could call the python script. But next question comes up is how to call python script which allows passing arguments to it too. And do I need to deploy the python tool and web app separately?

Encoding error in Django on Heroku

老子叫甜甜 提交于 2020-01-05 17:30:34
问题 I see some topics where people say to use this command to solve the problem heroku config:add LANG=en_US.UTF-8 I did it already but keep getting encoding problem, like this UnicodeEncodeError at /admin/controladoria/orgao/2/ 'ascii' codec can't encode character u'\xe7' in position 23: ordinal not in range(128) if I try to run the command above it is what I got.... daniel@daniel-VirtualBox: (dev *) $ heroku config:add LANG=en_US.UTF-8 Setting config vars and restarting rocky-hollows-8072...

'Couldn't find that formation' heroku deployment error

左心房为你撑大大i 提交于 2020-01-05 14:03:17
问题 I am trying to deploy a MEAN stack (MongoDB-Express-Angularjs-Nodejs) app on Heroku. After I push my code with git push heroku I get the following error "Scaling dynos... failed! Couldn't find that formation". I have checked for a solution with no luck. I created a Procfile, but that didn't help. I still get the same error. Any ideas on how I could get this up and running. I would include more code but I don't know where the problem is so please ask and I will include that code that is

Parallel background tasks on single worker dyno

假装没事ソ 提交于 2020-01-05 11:09:27
问题 We've got a Rails app where certain requests trigger long-running tasks on a worker dyno with delayed_job, while the front-end polls until it receives a result. Our traffic is small but growing, and the tasks generally take only a few seconds to complete, but can take up to a minute. Right now a single web and worker dyno each should be sufficient to handle our load. The problem is, the delayed_job queue won't process jobs in parallel, so a longer task ends up holding up the tasks behind it.

Can't load custom CSS on Heroku

烂漫一生 提交于 2020-01-05 11:07:10
问题 I am running Rails 3.2.8 and built an app which links to a custom CSS file and images. The custom CSS file is placed in my Assets/stylesheets folder and images are in Assets/images. For some reason, the CSS and images don't load when I push the app to Heroku. The app generates a manifest.yml file which contains all the images and CSS file. The CSS file is a customised version of Twitter Bootstrap: http://twitter.github.com/bootstrap/index.html Hope you guys can help and thanks in advance! 回答1

How do you clear a sticky Heroku router H13 error?

佐手、 提交于 2020-01-05 10:29:37
问题 I am getting a timeout error in a web dyno causing a H13 error on the Heroku router. This is timeout is caused by a device POSTing data into a Ruby on Rails application. When the timeout occurs, the Heroku logs show a H13 error and the device logs show a "Service Unavailable" error. » 21:34:49.622 2014-12-31 21:34:49.320039+00:00 app web.1 - - E, [2014-12-31T21:34:49.305349 #2] ERROR -- : worker=1 PID:10 timeout (31s > 30s), killing » 21:34:49.659 2014-12-31 21:34:49.361147+00:00 app web.2 -

Playframework 2.1 and Heroku update problems

我是研究僧i 提交于 2020-01-05 10:13:32
问题 i've create a play framework 2.1.0 project and deployed it on heroku. Last friday I've had to change the data models to add some extra fields. Once i tried to deploy the changes, it gave me evolution errors. Unable to fixe the problem i've reverted the changed and deployed the old version but i still get an error. The current error i'm getting is this database [default] connected at jdbc:postgresql: ... Position: 27 [ERROR:0, SQLSTATE:42601] ERROR: syntax error at or near "FALSE" at play.api

Superclass mismatch for class User (TypeError)?

≡放荡痞女 提交于 2020-01-05 09:34:43
问题 I have trouble with Heroku. I did heroku logs and got a error message: /app/app/models/user.rb:1:in `<top (required)>': superclass mismatch for class User (TypeError) /app/app/models/user.rb:1:in `<top (required)>': superclass mismatch for class User (TypeError) 2013-11-28T03:39:50.220378+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport- 3.2.11/lib/active_support/dependencies.rb:251:in `require' 2013-11-28T03:39:50.220378+00:00 app[web.1]: from /app/vendor/bundle/ruby/2

Deploying Meteor 0.8.3 application to Heroku

安稳与你 提交于 2020-01-05 09:08:37
问题 Lately I was trying to deploy Meteor application to Heroku but current version of buildpack is outdated, so I've spend some time to make it work with newest Meteor release 0.8.3. 回答1: You can find buildpack repository here https://github.com/jagi/heroku-buildpack-meteor. And if someone needs movie showing the whole process step by step, please go here https://www.youtube.com/watch?v=boeTv3527E0 Hope it will help you :). 来源: https://stackoverflow.com/questions/25078414/deploying-meteor-0-8-3

Heroku push rejected, railties dependency conflict? Ruby on Rails Tutorial Section 1.4.2

百般思念 提交于 2020-01-05 09:05:33
问题 Trying to push first_app to heroku. Starts out looking like it's working OK, but after a few seconds, I get: Fetching gem metadata from https://rubygems.org/......... Bundler could not find compatible versions for gem "railties": In Gemfile: rails (= 3.2.1) ruby depends on railties (= 3.2.1) ruby sass-rails (= 3.2.3) ruby depends on railties (3.2.2.rc1) It goes on to tell me that it failed to install gems and the push was rejected. My Gemfile is currently as specified in the tutorial, but I