heroku

GOOGLE_APPLICATION_CREDENTIALS must be defined.How to set enviroment variable at Java Spring on Heroku?

核能气质少年 提交于 2021-01-07 02:48:40
问题 I am using Firebase and Google Cloud Vision api and Cloud Storage with Java Spring. I create the value of GOOGLE_APPLICATION_CREDENTIALS via eclipse on my own computer. I am using heroku for host. But I could not find how to set this enviroment variable on the server I hosted. Here is the error Message":"An error has occurred.","ExceptionMessage":"The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable

How to use Google API credentials on Heroku in Spring Boot Project

隐身守侯 提交于 2021-01-07 02:21:22
问题 I have followed official documentation to achieve this. But I'm still facing issue. I'm doing spring boot project. below is my code, @Configuration public class FirebaseConfiguration { // database url, other urls // other codes... @Value(value = "classpath:google-credentials.json") private Resource gservicesConfig; @Bean public FirebaseApp provideFirebaseOptions() throws IOException { FirebaseOptions options = new FirebaseOptions.Builder() .setCredentials(GoogleCredentials.fromStream(

How to use Google API credentials on Heroku in Spring Boot Project

淺唱寂寞╮ 提交于 2021-01-07 02:21:17
问题 I have followed official documentation to achieve this. But I'm still facing issue. I'm doing spring boot project. below is my code, @Configuration public class FirebaseConfiguration { // database url, other urls // other codes... @Value(value = "classpath:google-credentials.json") private Resource gservicesConfig; @Bean public FirebaseApp provideFirebaseOptions() throws IOException { FirebaseOptions options = new FirebaseOptions.Builder() .setCredentials(GoogleCredentials.fromStream(

How to deploy on Heroku a Gradle Spring Boot app, with dependency on a local Library project?

穿精又带淫゛_ 提交于 2021-01-07 02:16:53
问题 Let's say I have a Gradle Multi project with 2 subprojects, :profile and :commons . :commons is a Library project, and :profile is a Spring Boot app, with details below: # profile/build.gradle ... dependencies { implementation project(':commons') ... } ... And # profile/settings.gradle rootProject.name = 'profile' include ":commons" project(':commons').projectDir = new File('../commons') Obviously, when I push to Heroku I have the error below: FAILURE: Build failed with an exception. remote:

Spring Boot on Heroku - H10 “app crash”

十年热恋 提交于 2021-01-06 07:21:27
问题 I am attempting to deploy a simple SpringMVC REST API to Heroku - I have the example code on github. When I deploy to Heroku, the app doesn't work - this is what I see in the log file on Heroku: 2016-11-21T00:28:28.965526+00:00 app[web.1]: at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) 2016-11-21T00:28:28.965587+00:00 app[web.1]: at org.springframework.context.event.SimpleApplicationEventMulticaster

Spring Boot on Heroku - H10 “app crash”

依然范特西╮ 提交于 2021-01-06 07:20:14
问题 I am attempting to deploy a simple SpringMVC REST API to Heroku - I have the example code on github. When I deploy to Heroku, the app doesn't work - this is what I see in the log file on Heroku: 2016-11-21T00:28:28.965526+00:00 app[web.1]: at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) 2016-11-21T00:28:28.965587+00:00 app[web.1]: at org.springframework.context.event.SimpleApplicationEventMulticaster

Spring Boot on Heroku - H10 “app crash”

杀马特。学长 韩版系。学妹 提交于 2021-01-06 07:19:06
问题 I am attempting to deploy a simple SpringMVC REST API to Heroku - I have the example code on github. When I deploy to Heroku, the app doesn't work - this is what I see in the log file on Heroku: 2016-11-21T00:28:28.965526+00:00 app[web.1]: at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) 2016-11-21T00:28:28.965587+00:00 app[web.1]: at org.springframework.context.event.SimpleApplicationEventMulticaster

Heroku CloudFlare No Such App

流过昼夜 提交于 2021-01-06 03:23:29
问题 I read these 2 articles https://robots.thoughtbot.com/set-up-cloudflare-free-ssl-on-heroku http://www.higherorderheroku.com/articles/cloudflare-dns-heroku/ And trying to use Cloudflare with Heroku: I have set the 2 CNAME as indicated: www -> myherokudomain.herokuapp.com mydomain.com -> myherokudomain.herokuapp.com And set the DNS accordingly, which work correctly with cloudflare curl -I mydomain.com HTTP/1.1 404 Not Found Content-Type: text/html; charset=utf-8 Connection: keep-alive Server:

Heroku CloudFlare No Such App

孤者浪人 提交于 2021-01-06 03:21:07
问题 I read these 2 articles https://robots.thoughtbot.com/set-up-cloudflare-free-ssl-on-heroku http://www.higherorderheroku.com/articles/cloudflare-dns-heroku/ And trying to use Cloudflare with Heroku: I have set the 2 CNAME as indicated: www -> myherokudomain.herokuapp.com mydomain.com -> myherokudomain.herokuapp.com And set the DNS accordingly, which work correctly with cloudflare curl -I mydomain.com HTTP/1.1 404 Not Found Content-Type: text/html; charset=utf-8 Connection: keep-alive Server:

Having trouble with heroku and git for my discord bot

天大地大妈咪最大 提交于 2021-01-05 11:51:28
问题 So I'm following this tutorial: https://www.techwithtim.net/tutorials/discord-py/hosting-a-discord-bot-for-free/ and I was getting this error: C:\Users\Joshua\OneDrive\VscodePrograms\MyPythonFolder\Discord>git add . warning: LF will be replaced by CRLF in MyPythonFolder/Discord/.idea/inspectionProfiles/Project_Default.xml. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in MyPythonFolder/Discord/.idea/inspectionProfiles/profiles