Questions tagged [heroku]

12840 questions
1

votes
2

answer
1.5k

Views

Deploy docker image (not Dockerfile) to Heroku?

I want to deploy an existing Docker image to Heroku, where there is no Dockerfile in the local directory. (I created the Docker foo:bar image using datasette, and I don't know where it puts the Docker image). These are the Docker images I have available: $ docker images REPOSITORY...
Richard
1

votes
2

answer
38

Views

Django app crashing on Heroku when trying to migrate database

The web app I have deployed is crashing in production as soon as I try to log in after submitting credentials. Normally, I have to run: heroku run python manage.py migrate to update the change in Heroku database but when I do, please find below what happen. Here is what the terminal return. Running...
Curtis Banks
0

votes
0

answer
5

Views

How to find the main cause in error logs when there are too many 'caused by' displayed?

I have deployed successfully java web app (war file) updates using ant build successfully to Heroku. But when I'm opening the link of my app, it's showing an application error. I checked the error logs but there are too many caused by showing so which caused by is the main cause of the error I shoul...
Ssubrat Rrudra
0

votes
0

answer
4

Views

500 (Internal Server Error) with Django-React and Heroku

On my local host, I have full crud functioning. When I deployed to Heroku, my site runs and everything, but I cannot add anything, and therefore cannot edit, update, or delete. I get the errors: Manifest: Line: 1, column: 1, Unexpected token. manifest.json:1 POST https://the-app-name.herokuapp.com/a...
Sam Schaefer
3

votes
1

answer
444

Views

How can I install Dlib in a Heroku python web app using requirements.txt?

I built a Python Flask web API that involves machine learning and I've had a lot of frustration deploying it on Heroku. The problem is, my app has a dependency on Dlib ( a library) and I can't seem to find a way to install in my Heroku server. I'm losing my mind trying to fix this and I can imagine...
Nuelsian
0

votes
0

answer
3

Views

heroku[router]: at=error code=H10 when deploying keystonejs-demo

I deploy keystonejs-demo to heroku. It says successfully deplayed, but throws errors when I try to run the application: 2019-04-22T13:17:37.468621+00:00 app[web.1]: at NativeConnection.(/app/node_modules/keystone/lib/core/openDatabaseConnection.js:62:10) 2019-04-22T13:17:37.468623+00:00 app[web....
evil-cat
0

votes
0

answer
11

Views

How to add a custom font to a static website in Heroku?

I created a static page website using just html and css and deployed it to Heroku and want to use a custom font I downloaded online. It works in my local repository, but I do not know how to use the font through heroku. Currently I tried adding the font in my folder, but that does not help. * { /*...
Ji One Yang
1

votes
1

answer
60

Views

star rating image not deploying to Heroku

I am having a bit of an issue, I am using this plugin jQuery Raty (rating system), I have the star images on my assets/images folder but for some reason, the images are not showing. Any idea of what might be? I already ran rails assets:precompile because I found this answer here, but no dice. It wo...
Lucky500
1

votes
0

answer
80

Views

Sendgrid not working on heroku but working locally

I just installed the send grid app on my heroku dashboard , followed all the required steps from the documentation to send mails via php SMTP... It works perfectly when tested locally but when I test it on the heroku server is crashes my page and still sends no mail.. What am I doing wrong anybody e...
lotlord
1

votes
2

answer
443

Views

How can one set process.env variables on their localhost in Express?

I want my code to run for both testing on my localhost, as well as my server. In heroku there is a GUI to do this, but how do I set these locally?
1

votes
0

answer
159

Views

Celery Periodic Task not working on given crontab params

I need to perform some background tasks in Django at a particular time so I'm using @periodic_task in my tasks.py file. Basically I have two tasks: @periodic_task(run_every=(crontab(day_of_month='3-11', hour=11, minute=32)), name='invoice_simulation', ignore_result=False) def invoice_simulation(): p...
Shubham Srivastava
1

votes
0

answer
80

Views

How publishing my API Rest with Heroku?

I just created a Rest API with NodeJs + express with MySQL, it works in localhost, but now I would like to use it online. I have tested Heroku and have created a Heroku app, afterward I do git push heroku master, but I have a permission problem : Counting objects: 3885, done. Delta compression using...
Kol2gaR
1

votes
0

answer
32

Views

Does anyone know how to successfully transition a vanilla Javascript app into an Node Express app so that it can deploy on Heroku?

I'm new to programming and I have a client-side Javascript app that utilizes an AJAX request in order to communicate with a chatbot. I have API keys that I hide, and when I run my app locally it works, but when I push to Heroku it doesn't recognize the variables even when I make Heroku think my app...
Ash
1

votes
2

answer
231

Views

Ruby on Rails CSS files not found when deployed in heroku

I am using a themeforest by webster. I've added them to my ruby on rails app. It works perfectly fine in localhost. But when uploaded to heroku, the css files are not found. It wont load all the css files. please refer to https://racepackdelivery.herokuapp.com/ `// in application.css *= require css...
naz
1

votes
0

answer
124

Views

Heroku NodeJS - Error: Cannot find module './prod.json'

First time pushing this app to heroku (and first time doing a NodeJS API), and when the app tries to start, I get this error in heroku's logs. It works fine in dev - what am I missing? I have a file: config/prod.json And in package.json 'scripts': { 'start': 'export NODE_ENV=prod && nodemon ./index....
gwalshington
1

votes
0

answer
257

Views

Python 3.6 - heroku local command cannot find Procfile - Help troubleshooting error message

I am trying to get a working example of my Django app before deployment to Heroku server. If I run python manage.py or heroku open the website runs with no problems. When I attempt to run heroku local web I get the following error: C:\Users\Jup\Drop>heroku local web [OKAY] Loaded ENV .env File as KE...
juju
1

votes
1

answer
754

Views

How to populate a heroku postgresql database with a sql file

First of, I want to say, that I am not a DB expert and I have no experience with the heroku service. I want to deploy a play framework application to the heroku service. And I need a database to do so. So I created a postgresql database with this command, since it's supported by heroku: Users-MacBoo...
Stefan Roth
1

votes
0

answer
99

Views

Heroku: Long running Rake task eventually crashes

I have a rake task I'm going to use only once, to import a massive CSV file. heroku run:detached bundle exec rake owners:import The rake task works ok locally. It runs for > 8 hours on Heroku, but eventually crashes. The task is not completed. Checking processes: heroku ps === web (Standard-...
Will
1

votes
0

answer
51

Views

“wkhtmltopdf” and “pdfkit” gems — error “ContentNotFoundError”. How to fix it?

I have a Rails app at heroku. I'm using these 2 gems for generating pdf files: gem 'wkhtmltopdf-heroku', '~> 2.12', '>= 2.12.3.0' gem 'pdfkit', '~> 0.8.2' I sometimes, but not always, I have an error: ContentNotFoundError It's probably due to a bug in the C++ library on top on which the gem is built...
Kurama
1

votes
0

answer
57

Views

Rails Heroku SSL and Network Solutions

Last night I migrated a site to Heroku with Network Solutions. The process went well for WEBSITE.com and www.WEBSITE.com, but https://WEBSITE.com does not work. I have the CName '*.WEBSITE.com' set to 'WEBSITE.com.herokudns.com.' and www.WEBSITE.com set to www.WEBSITE.com.herokudns.com. Network So...
jgrant
1

votes
1

answer
148

Views

“Missing application logs in drains Heroku Status #1372”

What does this mean? It's just a warning on my Heroku metrics dashboard and isn't seemingly affecting me in a negative way, but I'm worried it's secretly messing with something?
jomak73
1

votes
1

answer
198

Views

Heroku run rake db:migrate aborted

so I'm creating a ruby on rails app and I can't deploy in Heroku because I can't do the heroku run rake db:migrate. In localhost the app works well it just fails when I try to deploy it in Heroku. It aborts and says the following: $ heroku run rake db:migrate Running rake db:migrate on ⬢ tranquil...
Alexandre Salsinha
1

votes
0

answer
34

Views

xml file does not download to heroku folder

I have a simple function that gets a 'Blob' file from the database and tries to download it to heroku 'collections' folder. It is working in my local computer where it takes the blob file and downloads it to my local directory but the same method does not work in Heroku. public function downloadColl...
Masnad Nihit
1

votes
0

answer
703

Views

Laravel Passport and Heroku where to store encryption keys?

I am trying to deploy a Laravel application, which uses Laravel Passport, with Heroku. Everytime the app is deployed the slug is rebuilt causing the Laravel Passport encryption keys to be erased. It means everytime the app is deployed: the storage folder permissions should be changed new encryption...
louisfischer
1

votes
0

answer
154

Views

Heroku: Could not load the default credentials (Dialogflow API)

I am trying to build a chatbot using Node.JS, Dialogflow & Socket.Io and it works fine on my local machine. But when I want to access my agent from my Heroku app I get this error: Could not load the default credentials. I have defined the environment variables in the Config Vars on Heroku, but it do...
Matthieu Stadelmann
1

votes
0

answer
211

Views

“Internal Server Error” when using absolute path with Google OAuth Passport Strategy on Heroku

First time I've been unable to find an answer here before posting. I'm continuously deploying an API only backend for a React application to Heroku. When the Google Passport Strategy callbackURL is setup as a relative path with proxy: true it authenticates with Google perfectly, as intended: new Goo...
Avolition
1

votes
1

answer
617

Views

Heroku - not permitted to install sendgrid addon

Trying to install the sendgrid addon in heroku. $ heroku addons:create sendgrid:starter ▸ The account '[email protected]' is not permitted to install the ▸ sendgrid add-on at this time. If you believe this is an error please ▸ contact support and reference ID 352288c0-21e3-468a-893...
mcannon
1

votes
0

answer
84

Views

Heroku does not look for the DJANGO_SETTINGS_MODULE I've set for it

I'm deploying my first site. I intend to use one settings file for production and one for development. Thus I have this structure: workout | |-\settings | |- production.py |- development.py In order to let heroku know where to find the settings file, I do this: $ heroku config:set DJANGO_SETTINGS_MO...
Sahand
1

votes
0

answer
150

Views

Delpoying play application on heroku

i have some problem with deploying play + java application on Heroku. Deploying to heroku successful but Application error. Logs : -----> Play 2.x - Java app detected -----> Installing JDK 1.8... done -----> Running: sbt compile stage [info] Loading global plugins from /tmp/scala_buildpack_build_dir...
Ksenia Subbotina
1

votes
1

answer
194

Views

Error deploying Meteor app to Heroku - how to change NODE version

I received this error message when deploying a meteor app to HEROKU while the HEROKU build itself was successful: An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. I believe it has to do with the version of NODE in...
angelica
1

votes
0

answer
31

Views

Heroku doesn't respect my ruby directive in my Gemfile

At the top of my Gemfile, I have the following two lines: source 'https://rubygems.org' ruby '2.5.0' However, run I run git push heroku master, I get the following message: remote: -----> Ruby app detected remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.3.4 remote: ----...
Kurt Mueller
1

votes
1

answer
113

Views

shopify application charge failing to save

Below is my code for a Shopify one-time-application-charge in Ruby. I followed the shopify 'add billing to your app' page (https://help.shopify.com/api/tutorials/adding-billing-to-your-app) for the code, except didn't need a recurring charge. I have also found someone else who posted their one-time-...
Brady
1

votes
0

answer
35

Views

Changing Heroku app command when directly pushing docker image

I'm building a docker image locally and pushing it directly to Heroku using docker tag registry.heroku.com// docker push registry.heroku.com// as explained here. The reason for doing it this way is to be able to use stack's docker integration, which seems promising. I set it up using the following...
jorgen
1

votes
1

answer
392

Views

Rails5 - PG::UndefinedTable: ERROR: relation “stocks” does not exist

I am trying to deploy my application to heroku and i face this Undefined table error. Although i have tried a DB Drop, creation, this is still same. I have seen a few similar questions over in here, but none resolved my issue. remote: Download Yarn at https://yarnpkg.com/en/docs/install remot...
Abdul Muqeem
1

votes
0

answer
59

Views

Heroku - Migrating from SSL Endpoint to Heroku Automated Certificate Management SSL

we have a Heroku app running on a subdomain 'https://api.blahblah.com'. Originally the app was set up using an Add-On 'SSL Endpoint' for https, which is expiring in a few days. We are interested in migrating from the old SSL Endpoint to the Heroku Automated Certificate Management SSL. However, I a...
user3826864
1

votes
0

answer
30

Views

Can't run app after deploy to heroku

After I deploy my nodejs app to heroku. And run the node app.js in console. It's always said ' Cannot find module 'serve-index'. Althought I install it in server and local. But nothing happened. It still said cannot find module 'serve-index'
Hoàng Trần
1

votes
0

answer
291

Views

ReferenceError: process is not defined, Error in heroku app with node and sockets.io

Just deployed an app (https://socket-draw-app.herokuapp.com/) on Heroku but am getting this error: ReferenceError: process is not defined. in a javascript file: sketch.js. I am using the p5.js library. Code below (firstly the sketch.js and then my server.js node file) : var socket; function setup()...
Louis
1

votes
1

answer
393

Views

Angular 2+ and ASP.NET Core Web API - How to publish on Heroku?

I have applications: 1. Client-side which is Angular 2+/ASP.NET Core project 2. Server-side ASP.NET Core Web Api with MS SQL database (Entity Framework Core) This apps have configured CORS. How can I publish both of this apps on Heroku? I started with the server-side using this tutorial https:/...
Michał Ziobro
1

votes
1

answer
63

Views

Unable to install Blackfire PHP on Codeship

I try to deploy my PHP application to Heroku through Codeship. Heroku requires to add ext-blackfire to my composer.json and it results in a crash on Codeship at composer install. The requested PHP extension ext-blackfire ~1.18 is missing from your system. Install or enable PHP's blackfire extension...
Blacksonic
1

votes
0

answer
68

Views

Cloudflare Heroku Express.js SSL

I am using Cloudflare, Heroku Hobby Dynos to host my website. I am quite confused on how https and SSL management is being handled using their provided SSL certificates. Should I purchase my own self signed certificate instead? Also on the backend, I have it currently configured with http, but since...
hopelessmuffins

View additional questions