heroku

web.1: crashed ERROR when scaling dyno on heroku

巧了我就是萌 提交于 2019-12-25 01:23:38
问题 i just deployed my app on heroku. The i ran: heroku ps:scale web=1 Wich ran ok, but when i wanted to check the dyno working with heroku ps i got the following: === web (1X): `bin/rails server -p $PORT -e $RAILS_ENV` web.1: crashed 2015/01/19 11:18:38 (~ 3m ago) heroku logs: 2015-01-19T15:14:06.131511+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=rock-paper-scissors-test.herokuapp.com request_id=27ca44cb-ca4e-473e-9789-0245d393bd56 fwd="190.15

Python heroku configure procfile gunicorn + gevent for socket.io chat app | RuntimeError: You need to use the gevent-websocket server

限于喜欢 提交于 2019-12-25 01:09:31
问题 I have a working chat app on localhost, but it does not work on heroku (Question from yesterday). After some research I think the problem is how I start the app. Procfile currently: web: gunicorn adult_main:app I need to use gevent in combination with gunicorn . This way I should be able to have max. 1000 socket.io connections, which is enough for me for the moment. I already installed and added gevent to the requirements.txt . Here an extract of the file: Flask-SocketIO==2.9.6 gunicorn==19.7

Precompiling assets failed

ぃ、小莉子 提交于 2019-12-25 01:09:24
问题 I am pushing to an app I haven't updated in months and am running into this problem. I only changed a few variables in my code. No idea why its suddenly doing this to me. ! ! Precompiling assets failed. ! ! Push rejected, failed to compile Ruby app To git@heroku.com:myapp.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'git@heroku.com:myapp.git' rake aborted! could not connect to server: Connection refused Is the server running on host

Facebook inline video sharing with Ruby on Rails

女生的网名这么多〃 提交于 2019-12-25 01:03:59
问题 I've been looking around for a bit but I can't seem to find any information on how to achieve what I want. Basically I have a page which displays a gif and offers the possibility to share it on facebook. I tried to make this work with the gif file directly but after a lot of trial and a lot of errors I gave up on this idea and instead, decided I might as well make it so the page would appear as a video on facebook since I already have a 15second long video generated from the gif for instagram

reconnect keyword argument on ClearDB default connection string causing errors with MySQLdb

泪湿孤枕 提交于 2019-12-25 00:40:17
问题 I uploaded a Django app to Heroku and than provision the cleardb add-on using these 3 commands from Heroku documentation: heroku addons:create cleardb:ignite heroku config | grep CLEARDB_DATABASE_URL heroku config:set DATABASE_URL='mysql://adffdadf2341:adf4234@us-cdbr-east.cleardb.com/heroku_db?reconnect=true' it seems to be O.K and the app is running (but without database). now I try to run: $ heroku run python manage.py migrate and this is the error I get: Traceback (most recent call last):

SSH from Heroku into remote server with Mysql Db

浪子不回头ぞ 提交于 2019-12-24 23:00:12
问题 I'm looking at an Rails app that would require establishing a remote SSH session (SSH Tunnel?) from Heroku to a remote Mysql database as part of an background, ActiveRecord session. The goal would be to migrate data at different times via this channel into the app. Connecting to the remote mysql database over the web would not be an option. Few questions: Does Heroku permit SSHing off their Dyno? What would be the downsides of doing so? Would I have to be concerned about SSH session

How to set up heroku for a non-master branch as test and then merge it into master?

非 Y 不嫁゛ 提交于 2019-12-24 22:39:03
问题 Why I'm fairly new to rails and this particular project is the first where I'm working collaboratively on a rails app. Therefore I wanted to test-deploy the existing app on heroku and when it's working merge into master. This is because I don't want to mess with master until I know what I'm doing (read: heroku works). The problems I can foresee Heroku is fairly attached to work with master only, unless specified. This SO question documents how to deploy a non-master branch but does not go

static.json not working for ReactJS routes and Heroku

自作多情 提交于 2019-12-24 22:05:24
问题 In theory this should work, adding at the / folder the file /static.json that makes everything go to the React index.html . (related) React Routing works in local machine but not Heroku https://github.com/heroku/heroku-buildpack-static#configuration In my case it doesn't work, I get a Cannot GET /hello instead of receiving the index.html. Surprisingly, if I go directly to /index.html I get the page but no route is activated. What is happening and how can I fix it? UPDATE: tried without luck

rails 3, heroku, aws-s3, simply trying to upload a file to S3 that is POSTed (http/multipart) to our app

删除回忆录丶 提交于 2019-12-24 21:52:18
问题 Our app is hosted at Heroku, so no local file storage. A third party api we're using doesn't store a WAV it creates, it POSTs the file (http/multi-part) back to our app. They provide sample code to 'simply' send that file on to S3. The code they supply (below) doesn't run on Rails 3 + Heroku. I suspect there's some different syntax for specifying the input file and temp file from which we read. (The code was originally for Sinatra. I have NO idea what the old [:filename] and [:tempfile] were

Can you deploy Docker-in-Docker to the Heroku Platform?

筅森魡賤 提交于 2019-12-24 21:00:39
问题 I have been experimenting with building and pushing Docker images to the Heroku container registry, then releasing them like so: heroku container:login heroku create some-app-name heroku container:push web --app some-app-name heroku container:release web --app some-app-name I have a particular use case that requires me to have the Docker Daemon running inside of a Docker container. To my understanding, it is not possible to run the Docker Daemon within a Docker container unless the -