heroku

UnknownHostException when trying to connect to heroku-postgres from local Springboot project with Spring JPA

岁酱吖の 提交于 2021-02-19 09:23:38
问题 I am trying to connect to heroku-postgres with Spring JPA when I am getting an unknownHostException. at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:292) ~[postgresql-42.2.5.jar:42.2.5] at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49) ~[postgresql-42.2.5.jar:42.2.5] at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195) ~[postgresql-42.2.5.jar:42.2.5] at org.postgresql.Driver.makeConnection(Driver.java

UnknownHostException when trying to connect to heroku-postgres from local Springboot project with Spring JPA

﹥>﹥吖頭↗ 提交于 2021-02-19 09:20:19
问题 I am trying to connect to heroku-postgres with Spring JPA when I am getting an unknownHostException. at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:292) ~[postgresql-42.2.5.jar:42.2.5] at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49) ~[postgresql-42.2.5.jar:42.2.5] at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195) ~[postgresql-42.2.5.jar:42.2.5] at org.postgresql.Driver.makeConnection(Driver.java

UnknownHostException when trying to connect to heroku-postgres from local Springboot project with Spring JPA

痞子三分冷 提交于 2021-02-19 09:19:20
问题 I am trying to connect to heroku-postgres with Spring JPA when I am getting an unknownHostException. at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:292) ~[postgresql-42.2.5.jar:42.2.5] at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49) ~[postgresql-42.2.5.jar:42.2.5] at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195) ~[postgresql-42.2.5.jar:42.2.5] at org.postgresql.Driver.makeConnection(Driver.java

Heroku, Django, and Sendgrid - emails not sending?

纵饮孤独 提交于 2021-02-19 08:48:08
问题 So I'm using heroku and sendgrid and think I have my settings.py configured correctly: EMAIL_HOST_USER = os.environ['SENDGRID_USERNAME'] EMAIL_HOST= 'smtp.sendgrid.net' EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_HOST_PASSWORD = os.environ['SENDGRID_PASSWORD'] I'm sending email using send_mail like this (using pre_save receiver to check if attribute has changed... also 'myemail@gmail.com' is replaced with my actual email): @receiver(pre_save,sender=LotteryEntry) def send_email_if_invited

Browsersync Couldn't open browser Heroku

谁说胖子不能爱 提交于 2021-02-19 07:34:44
问题 Browsersync: when I use it locally it's all right. When I deploy on Heroku, I have this warning: Couldn't open browser (if you are using BrowserSync in a headless environment, you might want to set the open option to false) this is my package.json : "scripts": { "clean": "rimraf dist/{css/*,js/*,images/*}", "autoprefixer": "postcss -u autoprefixer -r dist/css/*", "scss": "node-sass --output-style compressed -o dist/css src/scss", "lint": "eslint src/js || true", "lint-scss": "stylelint src

How to access postgresql.conf file of postgresql deployment on Heroku

浪尽此生 提交于 2021-02-19 05:59:46
问题 I have a Django app hosted on Heroku, with a postgresql DB, on a Standard 0 plan. I want to access and read the postgresql.conf file for this particular app (to ascertain/edit the settings). Can anyone guide me how to do that? Note: I can't do that via the Heroku dashboard, and I don't know how to access the app's file structure over the Ubuntu commandline. 回答1: You can list all current settings without an access to postgres.conf : SELECT name, current_setting(name) FROM pg_settings; name |

How to properly serve my Angular application static files from a Django project on Heroku?

99封情书 提交于 2021-02-19 03:08:47
问题 I am trying to deploy on Heroku my app built with Django 2, DRF and Angular 6, and struggling to get the static files of my Angular app served. I am using WhitheNoise for both development environment and on Heroku. The structure of the project is as follows: my_project/ |-frontend/ | |- dist/ | |- ... |-myproject/ | |-settings/ | | |- __init.py | | |- base.py | | |- prod.py | | |- dev.py | |- __init__.py | |- urls.py | |- views.py | |- wsgi.py |-other_app1/ | |- ... |-other_app2/ | |- ... |

Setting Heroku config vars that contain the special character $

荒凉一梦 提交于 2021-02-18 21:16:24
问题 I am trying to set a Heroku config variable that contains the special character $ but I do not know how to properly escape it. I tried encapsulating it in quotes but got the same result. Example: heroku config:set EMAIL_PASSWORD=xxxxx$xxxxxxxx => EMAIL_PASSWORD: xxxxx heroku config:set EMAIL_PASSWORD="xxxxx$xxxxxxxx" => EMAIL_PASSWORD: xxxxx 回答1: Assuming you are using Bash (which is likely if you are on Mac or Linux) you can use single quotes to escape strings with $ , or use \ : $ echo $FOO

Heroku not recognized as an internal or external command (Windows)

人走茶凉 提交于 2021-02-18 08:57:06
问题 Following this heroku tutorial to launch an app on heroku. But when I use the command heroku create , it says it's not recognized. I added C:\Program Files\Heroku to my PATH. How do I fix this? 回答1: You can follow the Getting Started on Heroku with Python . My Heroku.exe PATH is in C:\Program Files\Heroku\bin . Make sure your Heroku's Path is correct. Or you can re-install the heroku. 回答2: You're probably using an old version or the deprecated package 'heroku-cli' . The new one is just called