Heroku – Display hash of current commit in browser

It’s now possible to try the Heroku feature Roberto wrote about in his answer, without contacting Heroku. It’s called Heroku Labs: Dyno Metadata and you can enable it by heroku labs:enable runtime-dyno-metadata -a <app name> and then the information is available (on the next deploy) as environment variables: ~ $ env HEROKU_APP_ID: 9daa2797-e49b-4624-932f-ec3f9688e3da HEROKU_APP_NAME: example-app … Read more

Collectstatic error while deploying Django app to Heroku

I just updated to Django 1.10 today and had the exact same problem. Your static settings are identical to mine as well. This worked for me, run the following commands: disable the collectstatic during a deploy heroku config:set DISABLE_COLLECTSTATIC=1 deploy git push heroku master run migrations (django 1.10 added at least one) heroku run python … Read more

sql.h not found when installing PyODBC on Heroku

To follow up on the answer below… Example for Ubuntu: sudo apt-get install unixodbc unixodbc-dev Example for CentOS: sudo yum install unixODBC-devel Example for Fedora: sudo dnf install unixODBC-devel On Windows: conn = pyodbc.connect(‘DRIVER={SQL Server};SERVER=yourserver.yourcompany.com;DATABASE=yourdb;UID=user;PWD=password’) On Linux: conn = pyodbc.connect(‘DRIVER={FreeTDS};SERVER=yourserver.yourcompany.com;PORT=1433;DATABASE=yourdb;UID=user;PWD=password;TDS_VERSION=7.2’)

How to resolve the following error in discord.py: “TypeError __init__() missing 1 required keyword-only argument: ‘intents'” [duplicate]

A little disclaimer: Join the discord.py server for more information, there are weekly updates since they are actively developing the library and changes can be breaking. Now every Client subclass needs the intents keysword as mentioned in the following picture: How to change the code: Head over to the Discord Developer Portal and click on … Read more

How to deploy reactapp with heroku-22?

Old Answer The buildpack you’re using is deprecated and doesn’t work on Heroku-22. The simple solution, which is what I’ve done, is to postpone upgrading the Heroku stack until a new buildpack for Create-React-App is released. Heroku-18 is deprecated though, so you should upgrade to Heroku-20. heroku stack:set heroku-20 Updated answer (as of 2023-01-05) If … Read more