heroku

NameError: uninitialized constant CarrierWave::Storage::Fog, heroku

ぃ、小莉子 提交于 2021-02-08 10:18:54
问题 I am trying to use carrierwave, fog and AWS for my image uploading on Heroku. Pretty common...I even have it set up successfully for another app. However when I delpoy to heroku I'm getting this error: Running: rake assets:precompile rake aborted! NameError: uninitialized constant CarrierWave::Storage::Fog Gemfile source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby '2.3.7' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails

Can I use Heroku to host a web app on a path of my custom domain?

北城余情 提交于 2021-02-08 10:14:58
问题 I have a personal website currently hosted on Weebly and the domain was bought on NameCheap. I'm creating a little flask web app that just displays a graph/table and I'm most likely going to use Heroku to deploy it. Is there anyway that I can make the web app display whenever someone visits a specific path of my domain? I guess I could just redirect to the url provided by heroku, but I would rather have it on my domain. 回答1: Short answer: Yes. There is an article explaining how to do this

Use OpenCV on deployed Flask app (Heroku)

青春壹個敷衍的年華 提交于 2021-02-08 10:12:54
问题 Hello I seem to be having trouble importing opencv on my deployed flask app on Heroku! I've referred to similar posts such as this this "ImportError: libSM.so.6: cannot open shared object file: No such file or directory " but can't seem to figure out the next steps on windows. This is what I've done so far: 1. gone to Heroku -> App -> Settings -> Buildpacks -> added Python buildpack 2. Added a Aptfile.txt to my directory with the following packages on each line (read this somewhere not sure

How to connect to my Heroku PostgreSQL database from Java

為{幸葍}努か 提交于 2021-02-08 09:10:34
问题 I have a Heroku PostgreSQL database to which I can't connect from Java. I have tried different methods but without success. Below is my Java code: import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class MainConfig { public static void main(String[] args) { try{ dataSource(); System.out.println("conected"); } catch(Exception ex){ ex.printStackTrace(); } } public static Connection dataSource() throws URISyntaxException, SQLException { String

How to connect to my Heroku PostgreSQL database from Java

允我心安 提交于 2021-02-08 09:07:20
问题 I have a Heroku PostgreSQL database to which I can't connect from Java. I have tried different methods but without success. Below is my Java code: import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class MainConfig { public static void main(String[] args) { try{ dataSource(); System.out.println("conected"); } catch(Exception ex){ ex.printStackTrace(); } } public static Connection dataSource() throws URISyntaxException, SQLException { String

How to connect to my Heroku PostgreSQL database from Java

♀尐吖头ヾ 提交于 2021-02-08 09:07:15
问题 I have a Heroku PostgreSQL database to which I can't connect from Java. I have tried different methods but without success. Below is my Java code: import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class MainConfig { public static void main(String[] args) { try{ dataSource(); System.out.println("conected"); } catch(Exception ex){ ex.printStackTrace(); } } public static Connection dataSource() throws URISyntaxException, SQLException { String

Heroku (Python/Flask) web app truncating log messages to only one line

有些话、适合烂在心里 提交于 2021-02-08 08:15:17
问题 I have a simple Python/Flask web that contains this: @app.route('/index') def index(): app.logger.warning('test message 1\ntest message 2\ntest message 3') Note the newline characters. When I run it with heroku local web I see this in the logs: web.1 | WARNING:app:test message 1 But when I push it to heroku instead of running it locally I see: 2015-12-09T22:23:21.102478+00:00 app[web.1]: WARNING in app[/app/app.py:17]: test message 1 2015-12-09T22:23:21.102482+00:00 app[web.1]: test message 2

Heroku (Python/Flask) web app truncating log messages to only one line

心已入冬 提交于 2021-02-08 08:14:41
问题 I have a simple Python/Flask web that contains this: @app.route('/index') def index(): app.logger.warning('test message 1\ntest message 2\ntest message 3') Note the newline characters. When I run it with heroku local web I see this in the logs: web.1 | WARNING:app:test message 1 But when I push it to heroku instead of running it locally I see: 2015-12-09T22:23:21.102478+00:00 app[web.1]: WARNING in app[/app/app.py:17]: test message 1 2015-12-09T22:23:21.102482+00:00 app[web.1]: test message 2

Heroku: How to install openjdk-8-jdk for non-java projects?

倾然丶 夕夏残阳落幕 提交于 2021-02-08 07:44:10
问题 I'm deploying a Django/Python project on heroku, and I need the Java Runtime Environment for a dependency. How can I install openjdk-8-jdk on heroku for this Python project? I tried this buildpack with no luck https://github.com/heroku/heroku-buildpack-apt 回答1: Add the JVM buildpack to your app: $ heroku buildpacks:add -i 1 heroku/jvm Then redeploy. 来源: https://stackoverflow.com/questions/50060525/heroku-how-to-install-openjdk-8-jdk-for-non-java-projects

Heroku: How to install openjdk-8-jdk for non-java projects?

那年仲夏 提交于 2021-02-08 07:43:29
问题 I'm deploying a Django/Python project on heroku, and I need the Java Runtime Environment for a dependency. How can I install openjdk-8-jdk on heroku for this Python project? I tried this buildpack with no luck https://github.com/heroku/heroku-buildpack-apt 回答1: Add the JVM buildpack to your app: $ heroku buildpacks:add -i 1 heroku/jvm Then redeploy. 来源: https://stackoverflow.com/questions/50060525/heroku-how-to-install-openjdk-8-jdk-for-non-java-projects