heroku

How do I change the rendered template in Flask when a thread completes?

↘锁芯ラ 提交于 2021-02-07 08:46:12
问题 I have a function that crawls the web for data and computes a score for the search. However, this can take a while and sometimes the webpage times out before finishing execution. So I created a separate thread that executes the function and loading.html that tells the client that data is still being collected. Once the function ends in the thread, how do I reload the webpage to display output.html that displays the score. This is a simpler version of what I have so far: from flask import

Docker PHP + Apache deployment on Heroku crashes

陌路散爱 提交于 2021-02-07 08:12:26
问题 I am trying to deploy a docker container and although I have tried several options, it always crashes. On local in works fine, on port 8080. Right now, I am using PHP + Apache. My folder herarchy looks like this: docker-compose.yml Dockerfile www .htaccess index.php My Dockerfile is this one: FROM php:7.1-apache COPY www /var/www/html RUN a2enmod rewrite RUN a2enmod lbmethod_byrequests RUN service apache2 restart EXPOSE 80 CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"] My docker-composer

Linking heroku app to a private(organization) github repo

强颜欢笑 提交于 2021-02-07 08:10:42
问题 Working on local, pushing changes to Heroku works and the app works as expected. However I am having trouble linking heroku app to a private repo on Github. Current configuration looks something like this git@github.com:{Organization}/{project}.git Where should I configure username/password for the private repo? I tried (even though this is not the preferred way) username:password@github.com/{organization}/{project}.git would appreciate any pointers regarding this. EDIT: I failed to mention

Linking heroku app to a private(organization) github repo

夙愿已清 提交于 2021-02-07 08:01:37
问题 Working on local, pushing changes to Heroku works and the app works as expected. However I am having trouble linking heroku app to a private repo on Github. Current configuration looks something like this git@github.com:{Organization}/{project}.git Where should I configure username/password for the private repo? I tried (even though this is not the preferred way) username:password@github.com/{organization}/{project}.git would appreciate any pointers regarding this. EDIT: I failed to mention

Linking heroku app to a private(organization) github repo

空扰寡人 提交于 2021-02-07 07:58:40
问题 Working on local, pushing changes to Heroku works and the app works as expected. However I am having trouble linking heroku app to a private repo on Github. Current configuration looks something like this git@github.com:{Organization}/{project}.git Where should I configure username/password for the private repo? I tried (even though this is not the preferred way) username:password@github.com/{organization}/{project}.git would appreciate any pointers regarding this. EDIT: I failed to mention

Linking heroku app to a private(organization) github repo

不羁的心 提交于 2021-02-07 07:57:58
问题 Working on local, pushing changes to Heroku works and the app works as expected. However I am having trouble linking heroku app to a private repo on Github. Current configuration looks something like this git@github.com:{Organization}/{project}.git Where should I configure username/password for the private repo? I tried (even though this is not the preferred way) username:password@github.com/{organization}/{project}.git would appreciate any pointers regarding this. EDIT: I failed to mention

Driver:org.postgresql.Driver@3ed03652 returned null for URL… While deployin spring boot to Heroku

谁说胖子不能爱 提交于 2021-02-07 07:53:40
问题 I try deploy my application on Heroku, but have some errors which I can't fix my application.poperties spring.mvc.view.prefix = /WEB-INF/view/ spring.mvc.view.suffix = .jsp spring.datasource.url = jdbc:postgres://user:pass@ec2-54-247-166-129.eu-west-1.compute.amazonaws.com:5432/database # Username and password spring.datasource.username = user spring.datasource.password = pass # Keep the connection alive if idle for a long time (needed in production) spring.datasource.testWhileIdle = true

Cannot deploy sample GOLang application to Heroku

心已入冬 提交于 2021-02-07 07:32:11
问题 I tried deploying the sample GO application to Heroku listed here But when I run the command: git push heroku master I get the following error: Counting objects: 28, done. Compressing objects: 100% (21/21), done. Writing objects: 100% (28/28), 3.08 KiB, done. Total 28 (delta 6), reused 0 (delta 0) ! Heroku push rejected, no Cedar-supported app detected To git@heroku.com:mysterious-refuge-1227.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs

Deploying a JHipster/MongoDB application to Heroku

Deadly 提交于 2021-02-07 07:19:17
问题 JHipster offers sub-generators for deploying applications to cloud providers (such as Heroku and Openshift), but not for applications using MongoDB due to the fact that Mongeez requires admin privileges which of course is not possible within a PaaS environment. However, it should be possible to run JHipster + MongoDB on cloud providers as long as Mongeez is deactivated. I did the following (using Heroku): First, I manually exported the MongoDB database that was created by JHipster on my local

Heroku: deploying Deep Learning model

岁酱吖の 提交于 2021-02-07 06:17:27
问题 I have developed a rest API using Flask to expose a Python Keras Deep Learning model (CNN for text classification). I have a very simple script that loads the model into memory and outputs class probabilities for a given text input. The API works perfectly locally. However, when I git push heroku master , I get Compiled slug size: 588.2M is too large (max is 500M) . The model is 83MB in size, which is quite small for a Deep Learning model. Notable dependencies include Keras and its tensorflow