heroku

Heroku push rejected, Ruby Version Changed Detected, Could not find net-scp-1.0.6

风格不统一 提交于 2020-01-21 12:02:09
问题 I can't figure out what is going on here. I deployed to Heroku on Tuesday with no problem. I have not changed my Ruby version locally or on the Gemfile but heroku is telling me that I have changed Ruby Versions & it's unable to find net-scp-1.0.6. Everything works perfectly locally, I have search around and can't find anything addressing a similar problem. Counting objects: 81, done. Delta compression using up to 4 threads. Compressing objects: 100% (62/62), done. Writing objects: 100% (62/62

Cannot send email from server heroku using spring javamail

五迷三道 提交于 2020-01-21 11:46:06
问题 I tried to send Email from Heroku , using Spring javamail , but got error. My code: import org.springframework.mail.MailSender; import org.springframework.mail.SimpleMailMessage; import org.springframework.mail.javamail.JavaMailSenderImpl; import org.springframework.stereotype.Service; @Service("mailService") public class JavaMailerServiceImpl { private MailSender mailSender; public JavaMailerServiceImpl(JavaMailSenderImpl mailSender) { this.mailSender = mailSender; } public void sendMail

Can I have node.js listen on a non-standard port when hosted on Heroku?

不想你离开。 提交于 2020-01-21 11:32:46
问题 I'm building a node.js app and am experimenting with hosting it on Heroku. It seems that to make my app available to the world, I need to listen like this: app.listen(process.env.PORT || 3000); I'd like to have my app listen on port 8080. Is this possible in Heroku? Can I change the value of process.env.port? It seems to be some kind of reverse proxy that I might not have control over. 回答1: No. Heroku tells your application which port your application is required to listen on. The required

Occasional Postgres error on Heroku: could not translate host name “<pg URL>” to address: Name or service not known (PG::Error)

坚强是说给别人听的谎言 提交于 2020-01-21 11:09:05
问题 I'm using the shared postgres (dev / free) plan right now on Heroku and I see this error in my logs a decent amount. Connecting to the PG database does usually work though, so I'm not sure if this is something that's within my control. The Heroku Status page does not list any downtime for the shared databases when these occur. Using Rails 3.1.1 and the Unicorn web server. Error: could not translate host name "pg60.sharedpg.heroku.com (http://pg60.sharedpg.heroku.com)" to address: Name or

heroku db:pull failing due to lack of password when I haven't specified a password

≡放荡痞女 提交于 2020-01-21 08:51:24
问题 When I execute heroku db:pull it finds my local dev db at: postgres://127.0.0.1/myapp_development?encoding=utf8 once I confirm though, it fails with: Sequel::DatabaseConnectionError -> PGError: fe_sendauth: no password supplied I tried running the pull with the local db specified, e.g. heroku db:pull postgres://root:@localhost/db_name which gives the same no password supplied error. I thought I may need to change root: to myname: because thats the user I granted superuser rights to when I

switching from MySQL to PostgreSQL for Ruby on Rails for the sake of Heroku

喜夏-厌秋 提交于 2020-01-21 06:53:28
问题 I'm trying to push a brand new Ruby on Rails app to Heroku. Currently, it sits on MySQL. It looks like Heroku doesn't really support MySQL and so we are considering using PostgreSQL, which they DO support. How difficult should I expect this to be? What do I need to do to make this happen? Again, please note that my DB as of right now (both development & production) are completely empty. 回答1: Don't feel you have to migrate to Postgres - there are several MySQL Addon providers available on

ImportError: cannot import name get_path_info

∥☆過路亽.° 提交于 2020-01-19 17:25:05
问题 My question is why foreman start not serving css file in dev environment ...? but my app running perfectly fine in heroku production server. Correct me if i am wrong, i thought dj-static is the only option for serving static in foreman env, so in order to work dj-static in wsgi.. follows... wsgi.py from django.core.wsgi import get_wsgi_application application = get_wsgi_application() if i am changing above code to import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "readtamil.settings")

Django + Postgres + Large Time Series

跟風遠走 提交于 2020-01-19 09:59:08
问题 I am scoping out a project with large, mostly-uncompressible time series data, and wondering if Django + Postgres with raw SQL is the right call. I have time series data that is ~2K objects/hour, every hour. This is about 2 million rows per year I store, and I would like to 1) be able to slice off data for analysis through a connection, 2) be able to do elementary overview work on the web, served by Django. I think the best idea is to use Django for the objects themselves, but drop to raw SQL

Hosting a production React app built with Wepback on Heroku

試著忘記壹切 提交于 2020-01-18 05:45:59
问题 Every time I push to heroku it simply says "Not Found". I am assuming it is because webpack doesn't run? I've tried all sorts of scripts: "scripts": { "clean": "rimraf dist", "build": "npm run clean && NODE_ENV=production && webpack -p --progress", "postinstall": "npm run builds", "serve": "webpack-dev-server" } and another, just without the postinstall. The one with the postinstall will give me an error, saying webpack wasn't installed (saved under my devDependencies). In the second I get a

Hosting a production React app built with Wepback on Heroku

我的未来我决定 提交于 2020-01-18 05:45:05
问题 Every time I push to heroku it simply says "Not Found". I am assuming it is because webpack doesn't run? I've tried all sorts of scripts: "scripts": { "clean": "rimraf dist", "build": "npm run clean && NODE_ENV=production && webpack -p --progress", "postinstall": "npm run builds", "serve": "webpack-dev-server" } and another, just without the postinstall. The one with the postinstall will give me an error, saying webpack wasn't installed (saved under my devDependencies). In the second I get a