heroku

Moviepy: no audio in written videofile when running on heroku

本秂侑毒 提交于 2020-01-24 01:10:18
问题 I am making videos with moviepy. Created locally, the final videofile has audio. When I run the same code on heroku, the final video has no audio. First, I thought not using the /tmp directory on heroku might be the issue. I also followed advice to add audio parameters to write_videofile . Both didn't solve the problem. I am using the heroku ffmpeg buildpack. #Make soundtrack soundtrack = AudioFileClip('https://storage.googleapis.com/ABC/music.mp3') soundtrack = soundtrack.set_duration(final

Heroku H15 Error on web socket close

余生长醉 提交于 2020-01-24 00:12:13
问题 I have a Go service serving as a web socket server on Heroku. The client pings the server every 20 seconds and it seems to keep the connection open. The problem is that when the socket connection is closed, Heroku router throws H15 error thinking that the request took too much time. For example, if web socket connection has been open for 300 seconds, Heroku log would show: ….H15…. dyno=web.1 connect=1ms service=300000ms status=503 bytes=147…. Anyone has experienced this? 回答1: I solved the

Processing orders after minimum order met - Rails 3

与世无争的帅哥 提交于 2020-01-23 21:56:07
问题 My app has deals where orders are made once a minimum order amount is met. Currently I have setup orders that that orders are placed right after the order is submitted which is all working. Now I need to change the process so that orders are processed once the minimum order number for the deal is met. Should I use delayed_job for this or maybe a cron process? Here is the process I was thinking of following. Delaying Orders Until Orders minimum is met Find deals that are still active Then find

PySFTP failing with “No hostkey for host X found” when deploying Django/Heroku

若如初见. 提交于 2020-01-23 17:27:32
问题 I'm trying to deploy a Django web application which uses pysftp to access to a SFTP server through some views. The thing was perfectly working in local development, but when trying the first deployment on Heroku, the traceback below appeared ending with an error. It seems like I need to configure host keys and I believe I also need to set them in known_hosts at Heroku, but I have no idea about how to do that. In local development I was accessing with user/password without a problem, but from

Cloudfront and CSS/JS assets

99封情书 提交于 2020-01-23 13:09:35
问题 I have a cloudfront distribution set up to go to myapp.herokuapp.com Maybe I've misunderstood Cloudfront and CDNs in general, but I thought that somehow the CDN hosted the static files instead of me just including references to the CDN URL in my HTML files stored on Heroku. What I'm seeing in my Chrome Network tab is: Request URL:http://blah123.cloudfront.net/css/style-123.css Request Method:GET Status Code:301 Moved Permanently then: Request URL:http://myapp.herokuapp.com/css/style-123.css

Python and Node.js on Heroku

…衆ロ難τιáo~ 提交于 2020-01-23 12:00:59
问题 I have started to make a Node server which runs on Heroku. It was working fine until I tried to use the (unofficial) Duolingo API. I wrote the following Python script to connect to the API: import duolingo import simplejson as json lingo = duolingo.Duolingo('harleyrowland') print json.dumps(lingo.get_user_info()) and my Node server uses it using the following commands: var python = require('python-shell'); module.exports = { getData: function(callback){ python.run('duoScript.py', function

Heroku Rails CORS issue

↘锁芯ラ 提交于 2020-01-23 11:04:49
问题 I have built a rails restful service that I host on Heroku and a Angular client which I am trying to run from my local machine. Eventually this client will be run added to a phonegap project. However, for now i'm testing the application in chrome and ie and my browser keeps returning the error below. XMLHttpRequest cannot load Origin http://localhost is not allowed by Access-Control-Allow-Origin. This is the error message that I get. I was faced with this issue before pushing to Heroku and

Cant pg_restore on Heroku: “could not read from input file: end of file”

旧时模样 提交于 2020-01-23 06:28:09
问题 I am trying to copy my local PostgreSQL DB to Heroku app with pg_dump / pg_restore utils. Doing according to Heroku's official guide: https://devcenter.heroku.com/articles/heroku-postgres-import-export So, i've done the dump: pg_dump -Fc --no-acl --no-owner -h localhost -U myuser mydb > mydb.dump Then i've uploaded it on a reachable across the web server (and its really reachable, i've checked it downloading the file with wget and pg_restore ing it - works fine). Then i've tried to restore in

Heroku Web Server Won't Start Locally

*爱你&永不变心* 提交于 2020-01-23 05:30:26
问题 I am having problems starting heroku web server localy. Here is the error message I am constantlly getting: PS C:\Users\Dragan\heroku_workspace\python-getting-started> heroku local [OKAY] Loaded ENV .env File as KEY=VALUE Format 10:01:32 web.1 | Traceback (most recent call last): 10:01:32 web.1 | File "c:\users\dragan\anaconda3\lib\runpy.py", line 170, in _run_module_as_main 10:01:32 web.1 | "__main__", mod_spec) 10:01:32 web.1 | File "c:\users\usr1\anaconda3\lib\runpy.py", line 85, in _run

How can I deploy a secure (HTTPS) Meteor app on Heroku?

醉酒当歌 提交于 2020-01-23 01:26:13
问题 I would like to deploy my Meteor app to Heroku and make it only accessible through HTTPS. Ideally, I want to do this as cheaply as possible. 回答1: Create the Certificate Run these commands to get certbot-auto. certbot-auto should work on most systems wget https://dl.eff.org/certbot-auto chmod 755 certbot-auto This command starts the process of getting your certificate. The -d flag allows you to pass in the domain you would like to secure. Alternatively, without the -d flag, it will pop up a