heroku

heroku error: at=error code=H10 desc=“App crashed” method=GET

风流意气都作罢 提交于 2020-04-11 12:44:50
问题 If I try to open my heroku site I get a application error. If I run heroku logs --tail in the terminal I get a error: at=error code=H10 desc="App crashed" method=GET path="/" host=unidicks.herokuapp.com request_id=32754547-c705-4a11-9364-39a2168f7a71 fwd="84.195.162.123" dyno= connect= service= status=503 bytes= protocol=https. How can I fix this? index.js : var express = require('express'); var socket = require('socket.io'); // App setup var app = express(); var server = app.listen(process

为什么人们在AWS出现时会使用Heroku? Heroku与AWS的区别是什么? [关闭]

怎甘沉沦 提交于 2020-04-11 07:07:12
问题: I'm a beginner RoR programmer who's planning to deploy my app using Heroku. 我是初学者RoR程序员,他计划使用Heroku部署我的应用程序。 Word from my other advisor friends says that Heroku is really easy, good to use. 来自我的其他顾问朋友的话说,Heroku非常简单,易于使用。 The only problem is that I still have no idea what Heroku does... 唯一的问题是我仍然不知道Heroku做了什么...... I've looked at their website and in a nutshell, what Heroku does is help with scaling but... why does that even matter? 我看过他们的 网站 ,简而言之,Heroku所做的是帮助扩展但是......为什么这甚至重要? How does Heroku help with: Heroku如何帮助: Speed - My research implied that deploying AWS on the US East Coast would

Django/Heroku: FATAL: too many connections for role

旧城冷巷雨未停 提交于 2020-04-10 08:13:51
问题 So I just launched a website with Channels 2.0 Daphne 2.2.0 and asgi via Heroku (Hobby) and Postgres (trial). When I launch my website, I click around for a few pages and I get a 500 error. The error message I get emailed is FATAL: too many connections for role ..." When I run heroku pg:killall or wait long enough I can click around a few more times until the error message repeats itself. However, when I run heroku pg it shows Connections 0/20 . Does anyone know what is going on and how I can

Django/Heroku: FATAL: too many connections for role

戏子无情 提交于 2020-04-10 08:13:25
问题 So I just launched a website with Channels 2.0 Daphne 2.2.0 and asgi via Heroku (Hobby) and Postgres (trial). When I launch my website, I click around for a few pages and I get a 500 error. The error message I get emailed is FATAL: too many connections for role ..." When I run heroku pg:killall or wait long enough I can click around a few more times until the error message repeats itself. However, when I run heroku pg it shows Connections 0/20 . Does anyone know what is going on and how I can

Weird “is_xhr” error when deploying Flask app to Heroku

允我心安 提交于 2020-04-10 06:48:28
问题 I have a flask app which I've deployed to Heroku, one of the routes is the following def get_kws(): seed_kw = request.json['firstParam'] audience_max = request.json['secondParam'] interest_mining_service = InterestMiningService(seed_kw, audience_max) query_result = interest_mining_service.query_keyword().tolist() if seed_kw in query_result: print ("yes") return jsonify( { 'keyword_data' : interest_mining_service.find_kws().to_json(orient='records'), 'query_results': query_result } ) When I

bootstrap styles missing after deploy to Heroku

白昼怎懂夜的黑 提交于 2020-04-10 05:08:09
问题 Based on the googling I've been doing for the past two days, I am joining the hundreds (if not thousands) of people who lost bootstrap styling when deploying to Heroku. As is true of everyone else, the bootstrap styling works fine on the local machine, but is absent on the deployed heroku site. I am stumped. I am using rails 4.2.4 and ruby 2.2.3. (I am also using RubyMine if that makes a difference. I don't think it does. I tried a deploy with "plain" git and sublime and it made no difference

Rails 5.2 with master.key - Heroku deployment

一世执手 提交于 2020-04-08 00:57:50
问题 Rails 5.2 introduces the encrypted secrets feature through the usage of the awesome credentials.yml . But I'm struggling to get it to work with Heroku. Is there any Strategy available right now to deploy a Rails 5.2 App to Heroku? 回答1: You should set the environment variable RAILS_MASTER_KEY , either on your heroku web dashboard, or using console: $ heroku config:set RAILS_MASTER_KEY=<your-master-key> Example: $ heroku config:set RAILS_MASTER_KEY=123456789 (The < and > are placeholders) Rails

heroku keeps installing django packages during each deployment

依然范特西╮ 提交于 2020-04-07 09:21:53
问题 Im using django 3 and Python 3.7.4 I don't have any issues with the deployment and the project is working, it's just the first time I face this issue. Normally when deploying to Heroku all packages in the requirements file get installed during the first deployment process, and any further deployment will only update or install the new packages the get added. In my case, everytime I deploy, heroku is installing the whole packages again. Please advise if there is a way to handle this issue.

heroku keeps installing django packages during each deployment

天涯浪子 提交于 2020-04-07 09:20:54
问题 Im using django 3 and Python 3.7.4 I don't have any issues with the deployment and the project is working, it's just the first time I face this issue. Normally when deploying to Heroku all packages in the requirements file get installed during the first deployment process, and any further deployment will only update or install the new packages the get added. In my case, everytime I deploy, heroku is installing the whole packages again. Please advise if there is a way to handle this issue.

setting environment variables in heroku for flask app

为君一笑 提交于 2020-04-05 15:22:30
问题 I have a flask application that uses different configuration files for development and production environments. The relevant piece of code is this: app.config.from_object('config.dev') app.config.from_envvar('SPOTPIX_SETTINGS', silent=True) When i'm developing in my local server, the configurations are taken from config.dev, but when i push the code to heroku, i would like to set SPOTPIX_SETTINGS environment variable to point to the 'config.prod' file. This can be done in heroku command line