heroku

Heroku: Python dependencies in private repos without storing my password

自闭症网瘾萝莉.ら 提交于 2020-07-05 05:59:46
问题 The Problem My problem is exactly like How do I install in-house requirements for Python Heroku projects? and How to customize pip's requirements.txt in Heroku on deployment?. Namely, I have a private repo from which I need a Python dependency installed into my Heroku app . The canonical answer, given by Heroku's own Kenneth Reitz, is to put something like -e git+https://username:password@github.com/kennethreitz/requests.git@v0.10.0#egg=requests in your requirements.txt file. My security

django.core.exceptions.ImproperlyConfigured: WSGI application '{project_name}.wsgi.application' could not be loaded; Error importing module

房东的猫 提交于 2020-06-29 04:53:06
问题 I can't understand why I'm facing an error while running Heroku run python manage.py runserver I tried changing folder names and I tried removing and adding WhiteNoise in MIDDLEWARE MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware

How can resolve 503 (Service Unavailable) after GET/POST on Spring Boot and Heroku?

心已入冬 提交于 2020-06-29 04:31:19
问题 I have deployed my Spring Boot application on Heroku, and the build is succeeded. However, when I try to hit the end-points from the Postman, I get the 503 Service Unavailable And, I inspect the Heroku logs and the bellow log shows where the app was crushed 2020-06-05T17:09:50.000000+00:00 app[api]: Build succeeded 2020-06-05T17:09:53.277483+00:00 heroku[web.1]: Starting process with command `java -Dserver.port=17183 $JAVA_OPTS -jar target/ecommerce-0.0.1-SNAPSHOT.jar` 2020-06-05T17:09:55

How to Inspect the Queue Processing a Celery Task

我的梦境 提交于 2020-06-27 16:56:24
问题 I'm currently leveraging celery for periodic tasks. I am new to celery. I have two workers running two different queues. One for slow background jobs and one for jobs user's queue up in the application. I am monitoring my tasks on datadog because it's an easy way to confirm my workers a running appropriately. What I want to do is after each task completes, record which queue the task was completed on. @after_task_publish.connect() def on_task_publish(sender=None, headers=None, body=None, *

How to Inspect the Queue Processing a Celery Task

自古美人都是妖i 提交于 2020-06-27 16:56:18
问题 I'm currently leveraging celery for periodic tasks. I am new to celery. I have two workers running two different queues. One for slow background jobs and one for jobs user's queue up in the application. I am monitoring my tasks on datadog because it's an easy way to confirm my workers a running appropriately. What I want to do is after each task completes, record which queue the task was completed on. @after_task_publish.connect() def on_task_publish(sender=None, headers=None, body=None, *

Running PostGIS with Django on Heroku

谁都会走 提交于 2020-06-27 15:11:49
问题 Trying to run a GeoDjango app on Heroku and it's being a really piece of work. After struggling through a variety of problems, I've come to one I can't seem to hack my way out of. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/fields/__init__.py", line 673, in db_parameters type_string = self.db_type(connection) File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/gis/db/models/fields.py", line 105, in db_type return connection.ops.geo_db_type(self)

Running PostGIS with Django on Heroku

末鹿安然 提交于 2020-06-27 15:11:29
问题 Trying to run a GeoDjango app on Heroku and it's being a really piece of work. After struggling through a variety of problems, I've come to one I can't seem to hack my way out of. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/fields/__init__.py", line 673, in db_parameters type_string = self.db_type(connection) File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/gis/db/models/fields.py", line 105, in db_type return connection.ops.geo_db_type(self)

Heroku deploy issue sh: 1: ng: not found?

左心房为你撑大大i 提交于 2020-06-27 09:34:10
问题 I'm facing some issues while running app in heroku. Log: 2017-10-22T20:41:16.421991+00:00 app[web.1]: npm ERR! errno ENOENT 2017-10-22T20:41:16.411165+00:00 app[web.1]: > ng serve 2017-10-22T20:41:16.411149+00:00 app[web.1]: 2017-10-22T20:41:16.421630+00:00 app[web.1]: npm ERR! file sh 2017-10-22T20:41:16.411165+00:00 app[web.1]: 2017-10-22T20:41:16.416314+00:00 app[web.1]: sh: 1: ng: not found package.json: "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test",

1&1 domain pointing to Heroku

感情迁移 提交于 2020-06-26 14:55:09
问题 I am aware that there have been a few discussions on this one but none have given a definitive answer. I am hoping this will help me and others. Problem: I have a domain name (www.xyz.com) registered with 1&1. I want users to be able to type this in and be shown my website. A Heroku web app. I want the domain name (www.xyz.com) to be displayed. Not any subdomain url or the heroku app URL. I do not want the set-up do be anything that will have a detrimental impact on SEO. Note: I have just got

Heroku: “heroku ps:exec” not working when deploying a container into a dyno

你离开我真会死。 提交于 2020-06-26 09:42:44
问题 I'm deploying a Tensorflow Serving container to Heroku, everything is working fine, but when I try to ssh into the container for executing some commands, Heroku returns this error: C:\Users\whitm\Desktop\CodeProjects\deep-deblurring-serving>heroku ps:exec Establishing credentials... error ! Could not connect to dyno! ! Check if the dyno is running with `heroku ps' The Dyno is running correctly: C:\Users\whitm\Desktop\CodeProjects\deep-deblurring-serving>heroku ps Free dyno hours quota