heroku

Gems/Services for autoscaling Heroku's dynos and workers

我的梦境 提交于 2020-01-09 12:51:16
问题 I want to know if there are any good solutions for autoscaling dynos AND workers on Heroku in a production environment (probably a different solution for each of those, as they are pretty unrelated). What are you/companies using, regarding this? I found lots of options, but none of them seem really mature for a production environment. There is Heroscale, which seem to introduce some latency as it does not run locally, and I also heard of some downtime. There are modifications of delayed_jobs,

Creating temporary files in Heroku

瘦欲@ 提交于 2020-01-09 06:47:24
问题 I have an app hosted @ Heroku. The app depends on some feeds which are fetched using a socket listener. The socket listener gets one line of XML per second. Once I detect the end of file signal from the listener, I upload the file to Amazon S3 servers. But, until the end of file signal is received, is it possible to save the file content as a temporary file in Heroku? 回答1: You may be able to use the #{RAILS_ROOT}/tmp/ directory or Rails.root.join('tmp').to_s : Aspen & Bamboo [...] There are

Rails friendly_id doesn't render on existing user on heroku

こ雲淡風輕ζ 提交于 2020-01-07 08:24:34
问题 I am using the friendly_id gem to make my url friendly & replace id by username in the url for example. Everything works fine under development, because I was about to run (to update currents users url): User.find_each(&:save) in my rails c. But in production mode, on heroku, It works only with new users - How can I add the friendly_id models to existing users ? I tried to run Heroku run rake Pin.find_each(&:save) But without success: -bash: syntax error near unexpected token `(' Any ideas

Connect Heroku Application with my GoDaddy Domain [closed]

回眸只為那壹抹淺笑 提交于 2020-01-07 05:26:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I've set up a application on Heroku and have also purchased a domain from GoDaddy. I searched on Google how to connect my domain to Heroku and I also read the Heroku documentation but I am not able to connect it with my domain. I am a beginner and have found I need to add cname or domain may be but I don't know

Meteor : Run command on Heroku app

痴心易碎 提交于 2020-01-07 04:23:07
问题 I do have Meteor installed on my Heroku app. Due to some vulnerabilities concern Heroku is asking me to update Node.js version which is possible by updating the Meteor version as directed here But how would I run the update on my heroku. Currently I'm using command: heroku run meteor update --release 1.5.1 -a myappname 回答1: I think you need to go to your Meteor project (repo) with your code editor, do the update, make sure everything runs ok on "local". A good opportunity to run "npm outdated

Symfony and Heroku worker: can I use the database as communication mechanism between the front-end and the background worker?

[亡魂溺海] 提交于 2020-01-07 04:02:10
问题 I need an Heroku's Worker to do some background tasks. Now, reading the article Background jobs with workers in PHP , I found that the architecture designed in the article makes use of RabbitMQ as messaging system between the web dyno and the worker dyno. But I don't want to use RabbitMQ as it is really too much complex at this stage. So, as communication mechanism between web dyno and worker dyno , I'd like to use one of these two alternatives: Simply the database (largely my best choice :P)

How to install python module on Heroku cedar stack with Rails

妖精的绣舞 提交于 2020-01-07 03:54:33
问题 We have a rails app running on the Heroku Cedar stack, and we have a need for an external python module, namely 'pyPdf'. Unfortunately it is not one of the pre-installed python modules. Is there a way to install python modules on the Cedar stack? I've tried to add a requirements.txt at the root of my app, but this doesn't seem to work. Probably because Heroku dismisses it after seeing our Gemfile. Any help appreciated. 回答1: Is this module something that you're trying to access from your Rails

Can't login to heroku anymore

隐身守侯 提交于 2020-01-07 03:52:13
问题 I am not sure what exactly happened. I had to switch accounts, so logged out of one account to login to another- heroku auth:login These are my terminal commands- hello@world:~/$ heroku auth:login Error reading plugin: heroku-git. See /home/helloworld/.heroku/error.log for more information. Enter your Heroku credentials. Email: zzzzzzz@gmail.com Password (typing will be hidden): ▸ Post https://api.heroku.com/oauth/authorizations: dial tcp: lookup api.heroku.com on 127.0.1.1:53: cannot

Application Error when I deploy to heroku

久未见 提交于 2020-01-07 03:18:27
问题 I'm trying to deploy my node js app on Heroku but I keep on gettin an application Error when I open the page : So I decided to go into logs to see what was happening : It says something about module.js 471 ,I don't exactly know where I'm going wrong ,can you please tell if you know . 来源: https://stackoverflow.com/questions/43758907/application-error-when-i-deploy-to-heroku

Where is “hellodjango.wsgi”?

时间秒杀一切 提交于 2020-01-07 03:06:18
问题 I'm trying to assemble some of the missing pieces in my understanding of how to deploy a Django App to heroku, so that I can launch an instance of Newsdiffs on Heroku. When I walk through the instructions for running Django on Heroku they have you add a line to Procfile that reads thus: web: gunicorn hellodjango.wsgi --log-file - But there's no actual file named "hellodjango.wsgi" so ... in that tutorial, where is the "hellodjango.wsgi" module created? And, perhaps more to the point, why is