heroku

Django + Heroku + MongoDB Atlas (Djongo) = DatabaseError with No Exception

淺唱寂寞╮ 提交于 2020-12-12 05:36:41
问题 One line description of the issue Whenever my django app deployed on heroku tries to access my MongoDB Atlas cluster to submit a form or check an admin login it throws something like the attached error. Extra Details Error reproducible on heroku build here I think that this is error has to do with how heroku interacts with my MongoDB Atlas cluster, as I am able to get the app to successfully read and make modifications do different records in my database when I run the build locally. I have

Using credentials.yml with heroku on Rails 5.2

Deadly 提交于 2020-12-11 02:08:27
问题 I have an app on Rails 5.2 and it was previously hosted on DigitalOcean, but I need to host it on heroku. I've been reading that heroku can't read Credentials.yml of because it's on gitignore and of course I don't want it public. So my key variables are like this (and example with redis): host: Rails.application.credentials.redis_host, password: Rails.application.credentials.redis_password Heroku can't read this. So my question is what is the best approach to change that in to heroku ENV

Laravel/Heroku, no such file or directory for sessions

青春壹個敷衍的年華 提交于 2020-12-11 01:00:24
问题 I'm trying to run my application on heroku, but for some requests (only POST, GET are working fine), I've got the following error on my Ajax POST request: Error: Request failed with status code 419 When I check heroku logs, I get this error: production.ERROR: file_put_contents(/app/storage/framework/sessions/r9yIHf3WlKIzROWGPlVOk59rwr6tVyAeCLuJ9wWx): failed to open stream: No such file or directory {"userId":1,"email":"xxx@gmail.com","exception":"[object] (ErrorException(code: 0): file_put

Laravel/Heroku, no such file or directory for sessions

馋奶兔 提交于 2020-12-11 00:43:25
问题 I'm trying to run my application on heroku, but for some requests (only POST, GET are working fine), I've got the following error on my Ajax POST request: Error: Request failed with status code 419 When I check heroku logs, I get this error: production.ERROR: file_put_contents(/app/storage/framework/sessions/r9yIHf3WlKIzROWGPlVOk59rwr6tVyAeCLuJ9wWx): failed to open stream: No such file or directory {"userId":1,"email":"xxx@gmail.com","exception":"[object] (ErrorException(code: 0): file_put

heroku smtplib need to log into browser

痴心易碎 提交于 2020-12-09 04:56:41
问题 I have pushed a bot onto heroku with feedback capability (email) but i need to log into web browser before gmail will allow me to use it. Any way round this? smtplib.SMTPAuthenticationError: (534, b'5.7.14 / Please log in via your web browser and\n5.7.14 then try again .\n5.7.14 Learn more at\n5.7.14 https://support.google.com/mail/answer/78754 d9sm5410600qte.0 - gsmtp') Error from logs 回答1: The linked question is closed so I'll post here what worked for me. I has to allow less secure apps on

What is the right/secure way to pip install a private git repo on a Heroku app?

久未见 提交于 2020-12-08 03:59:29
问题 App structure (Python FastAPI): -my_app -server.py -Procfile -requirements.txt In order to install a private git repo required by my Heroku app, I added the following line to my requirements.txt : git+https://<github-token>@github.com/me/my-private-repo.git However on pushing, Github emailed me to say that since I had exposed my token in a commit it had revoked the token. (My app repo is private.) Totally fair! However, my Heroku build now fails, since it prompts for a password when

What is the right/secure way to pip install a private git repo on a Heroku app?

让人想犯罪 __ 提交于 2020-12-08 03:58:12
问题 App structure (Python FastAPI): -my_app -server.py -Procfile -requirements.txt In order to install a private git repo required by my Heroku app, I added the following line to my requirements.txt : git+https://<github-token>@github.com/me/my-private-repo.git However on pushing, Github emailed me to say that since I had exposed my token in a commit it had revoked the token. (My app repo is private.) Totally fair! However, my Heroku build now fails, since it prompts for a password when

Dokku: PHP extension mbstring is missing when deploying Laravel application

隐身守侯 提交于 2020-12-08 03:27:25
问题 I am still getting this error below saying that PHP extension mbstring is missing when deploying my Laravel application (version 6.17.1 ) using Dokku (version 0.18.3 ) even though I have followed the documentation (https://devcenter.heroku.com/articles/php-support#using-optional-extensions). -----> Cleaning up... -----> Building laravel-app from herokuish... -----> Adding BUILD_ENV to build environment... -----> Warning: Multiple default buildpacks reported the ability to handle this app. The

Dokku: PHP extension mbstring is missing when deploying Laravel application

半腔热情 提交于 2020-12-08 03:27:05
问题 I am still getting this error below saying that PHP extension mbstring is missing when deploying my Laravel application (version 6.17.1 ) using Dokku (version 0.18.3 ) even though I have followed the documentation (https://devcenter.heroku.com/articles/php-support#using-optional-extensions). -----> Cleaning up... -----> Building laravel-app from herokuish... -----> Adding BUILD_ENV to build environment... -----> Warning: Multiple default buildpacks reported the ability to handle this app. The

Dokku: PHP extension mbstring is missing when deploying Laravel application

不问归期 提交于 2020-12-08 03:25:21
问题 I am still getting this error below saying that PHP extension mbstring is missing when deploying my Laravel application (version 6.17.1 ) using Dokku (version 0.18.3 ) even though I have followed the documentation (https://devcenter.heroku.com/articles/php-support#using-optional-extensions). -----> Cleaning up... -----> Building laravel-app from herokuish... -----> Adding BUILD_ENV to build environment... -----> Warning: Multiple default buildpacks reported the ability to handle this app. The